Part Number Hot Search : 
7808A 01361 71851 0SH0670 1N4448 MMBTA05L M2520E MAX44
Product Description
Full Text Search
 

To Download CAP1208 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2014 microchip technology inc. ds00001570b-page 1 datasheet product features CAP1208 8-channel capacitive touch sensor general description the CAP1208 which incorporates righttouch ? technology, is a multiple channel capacitive touch sensor. it contains eight (8) individual capacitive touch sensor inputs with programmable sensitivity for use in touch sensor applications. each sensor input is calibrated to compensate for system parasitic capacitance and automatically recalibrated to compensate for gradual environmental changes. the CAP1208 includes multiple pattern touch recognition that allows the user to select a specific set of buttons to be touched simultaneously. if this pattern is detected, a status bit is set and an interrupt is generated. the CAP1208 has active and standby states, each with its own sensor input configuration controls. power consumption in the standby state is dependent on the number of sensor inputs enabled as well as averaging, sampling time, and cycle time. deep sleep is the lowest power state available, drawing 5a (typical) of current. in this state, no sensor inputs are active, and communications will wake the device. applications ? desktop and notebook pcs ? lcd monitors ? consumer electronics ? appliances features ? eight (8) capacitive touch sensor inputs ? programmable sensitivity ? automatic recalibration ? calibrates for parasitic capacitance ? individual thresholds for each button ? multiple button pattern detection ? power button support ? press and hold feature for volume-like applications ? 3.3v or 5v supply ? analog filtering for system noise sources ? rf detection and avoidance filters ? digital emi blocker ? 8kv esd rating on all pins (hbm) ? low power operation ? 5a quiescent current in deep sleep ? 50a quiescent current in standby (1 sensor input monitored) ? samples one or more channels in standby ? smbus / i 2 c compliant communication interface ? available in a 16-pin 3mm x 3mm qfn rohs compliant package block diagram smbus protocol smclk smdata vdd gnd alert# capacitive touch sensing algorithm cs1 cs2 cs3 cs4 cs5 cs6 cs7 cs8
reel size is 4,000 pieces for 16-pin qfn this product meets the halogen maximum concentration values per iec61249-2-21 ordering number package features CAP1208-1-a4-tr 16-pin qfn 3mm x 3mm (rohs compliant) eight capacitive touch sensor inputs, smbus interface, smbus address 0101_000(r/w ). CAP1208-2-a4-tr 16-pin qfn 3mm x 3mm (rohs compliant) eight capacitive touch sensor inputs, smbus interface, smbus address 0101_001(r/w ). 8-channel capacitive touch sensor datasheet ds00001570b-page 2 ? 2014 microchip technology inc. ordering information:
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 3 table of contents chapter 1 pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 chapter 2 electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 chapter 3 communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.1 communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2 system management bus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2.1 smbus start bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2.2 smbus address and rd / wr bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2.3 smbus data bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2.4 smbus ack and nack bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2.5 smbus stop bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2.6 smbus timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2.7 smbus and i 2 c compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3 smbus protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.3.1 smbus write byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.2 smbus read byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.3 smbus send byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.3.4 smbus receive byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 3.4 i 2 c protocols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.4.1 block read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.4.2 block write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 chapter 4 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4.1 power states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3 capacitive touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3.1 capacitive touch sensing settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.1.1 active state sensing settings ........................................................................................ 21 4.3.1.2 standby state sensing settings .................................................................................... 21 4.3.2 sensing cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.4 sensor input calibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.4.1 automatic recalibration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.4.2 negative delta count recalibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.4.3 delayed recalibration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.5 power button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.6 multiple touch pattern detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.7 noise controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.7.1 low frequency noise detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.7.2 rf noise detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.7.3 noise status and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4.8 interrupts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.8.1 alert# pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.8.2 capacitive sensor input interrupt behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4.8.3 interrupts for the power button . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 4.8.4 interrupts for multiple touch pattern detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.8.5 interrupts for sensor input calibration failures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4.8.6 interrupts for reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 chapter 5 register description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8-channel capacitive touch sensor datasheet ds00001570b-page 4 ? 2014 microchip technology inc. 5.1 main control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.2 status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.2.1 general status - 02h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.2.2 sensor input status - 03h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5.3 noise flag status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5.4 sensor input delta count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5.5 sensitivity control register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 5.6 configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.6.1 configuration - 20h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.6.2 configuration 2 - 44h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.7 sensor input enable register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.8 sensor input configuration register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.9 sensor input configuration 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 5.10 averaging and sampling configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 0 5.11 calibration activate and status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.12 interrupt enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.13 repeat rate enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.14 multiple touch configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.15 multiple touch pattern configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.16 multiple touch pattern register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.17 base count out of limit register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.18 recalibration configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 5.19 sensor input threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.20 sensor input noise threshold register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 5.21 standby channel register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5.22 standby configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 5.23 standby sensitivity register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5.24 standby threshold register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5.25 sensor input base count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 5.26 power button register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.27 power button configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5.28 sensor input calibration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5.29 product id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 5.30 manufacturer id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 5.31 revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 chapter 6 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.1 CAP1208 package drawings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 6.2 package marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 appendix a device delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 a.1 delta from cap1128 / cap1188 to CAP1208 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 chapter 7 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 5
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 5 list of figures figure 1.1 CAP1208 pin diagram (16-pin qfn) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 3.1 smbus timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 4.1 system diagram for CAP1208 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 figure 4.2 por and porr with slow rising v dd and bor with falling v dd . . . . . . . . . . . . . . . . . . . . . . . 20 figure 4.3 sensor interrupt behavior - rep eat rate enabled . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 4.4 sensor interrupt behavior - no repeat rate enabl ed . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 figure 6.1 CAP1208 package drawing - 16-pin qfn 3mm x 3mm . . . . . . . . . . . . . . . . . . . . . . . . . . 58 figure 6.2 CAP1208 package dimensions - 16-pin qfn 3mm x 3mm . . . . . . . . . . . . . . . . . . . . . . . 59 figure 6.3 CAP1208 pcb land pattern and stencil - 16-p in qfn 3mm x 3mm . . . . . . . . . . . . . . . . 60 figure 6.4 CAP1208-1 package marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 figure 6.5 CAP1208-2 package marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
8-channel capacitive touch sensor datasheet ds00001570b-page 6 ? 2014 microchip technology inc. list of tables table 1.1 pin description for CAP1208 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 table 1.2 pin types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 2.1 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 table 2.2 electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 3.1 protocol format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 table 3.2 write byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 3.3 read byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 3.4 send byte protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 table 3.5 receive byte protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 3.6 block read protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 3.7 block write protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 4.1 ideal base counts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 5.1 register set in hexadecimal order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 7 table 5.2 main control register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 5.3 status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 5.4 noise flag status registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 5.5 sensor input delta count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 table 5.6 sensitivity control register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 5.7 delta_sense bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 5.8 base_shift bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 5.9 configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 5.10 sensor input enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 5.11 sensor input configuration register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 5.12 max_dur bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 5.13 rpt_rate bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 5.14 sensor input configuration 2 register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 5.15 m_press bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 5.16 averaging and sampling configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 5.17 avg bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 table 5.18 samp_time bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 5.19 cycle_time bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 5.20 calibration activate and status register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 table 5.21 interrupt enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 5.22 repeat rate enable register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 5.23 multiple touch configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 table 5.24 b_mult_t bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 5.25 multiple touch pattern configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 table 5.26 mtp_th bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 5.27 multiple touch pattern register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 5.28 base count out of limit register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 5.29 recalibration configuration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 5.30 neg_delta_cnt bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 table 5.31 cal_cfg bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 5.32 sensor input threshold registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 table 5.33 sensor input noise threshold register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 5.34 csx_bn_th bit decode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 table 5.35 standby channel register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 5.36 standby configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 table 5.37 stby_avg bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 5.38 stby_samp_time bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 5.39 stby_cy_time bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 table 5.40 standby sensitivity register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 7 table 5.41 stby_sense bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 table 5.42 standby threshold register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 5.43 sensor input base count registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 table 5.44 power button register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 5.45 pwr_btn bit decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 5.46 power button configuration register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 5.47 power button time bits decode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 5.48 sensor input calibration registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 5.49 product id register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 5.50 vendor id register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 5.51 revision register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 table a.1 register delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 table 7.1 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
8-channel capacitive touch sensor datasheet ds00001570b-page 8 ? 2014 microchip technology inc. chapter 1 pin description figure 1.1 CAP1208 pin diagram (16-pin qfn) table 1.1 pin description for CAP1208 pin number pin name pin function pin type unused connection 1alert# alert# - active low alert / interrupt output for smbus alert od connect to ground 2smdata smdata - bi-directional, open-drain smbus or i 2 c data - requires pull-up resistor diod n/a 3smclk smclk - smbus or i 2 c clock input - requires pull-up resistor di n/a 4 vdd positive power supply power n/a 5 n/c not internally connected n/a connect to ground 6 n/c not internally connected n/a connect to ground 7 gnd ground power n/a 8 gnd ground power n/a 9 cs8 capacitive touch sensor input 8 aio connect to ground 10 cs7 capacitive touch sensor input 7 aio connect to ground 1 2 3 4 12 11 10 9 16 15 14 13 5 6 7 8 vdd smclk smdata cs7 gnd cs5 cs6 cs1 cs2 cs4 cs8 cs3 gnd n/c n/c exposed pad alert#
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 9 application note: all digital pins are 5v tolerant pins. the pin types are described in table 1.2 . 11 cs6 capacitive touch sensor input 6 aio connect to ground 12 cs5 capacitive touch sensor input 5 aio connect to ground 13 cs4 capacitive touch sensor input 4 aio connect to ground 14 cs3 capacitive touch sensor input 3 aio connect to ground 15 cs2 capacitive touch sensor input 2 aio connect to ground 16 cs1 capacitive touch sensor input 1 aio connect to ground bottom pad exposed pad not internally connected, but recommend grounding - - table 1.2 pin types pin type description power this pin is used to supply power or ground to the device. di digital input - this pin is used as a digital input. this pin is 5v tolerant. aio analog input / output - this pin is used as an i/o for analog signals. diod digital input / open drain output - this pin is used as a digital i/o. when it is used as an output, it is open drain and requires a pull- up resistor. this pin is 5v tolerant. od open drain digital output - this pin is used as a digital output. it is open drain and requires a pull-up resistor. this pin is 5v tolerant. table 1.1 pin description for CAP1208 (continued) pin number pin name pin function pin type unused connection
8-channel capacitive touch sensor datasheet ds00001570b-page 10 ? 2014 microchip technology inc. chapter 2 electrical specifications note 2.1 stresses above those listed could cause permanent damage to the device. this is a stress rating only and functional operation of the device at any other condition above those indicated in the operation sections of this specification is not implied. note 2.2 for the 5v tolerant pins that have a pull- up resistor, the voltage difference between v 5vt_pin and v dd must never exceed 3.6v. note 2.3 the package power dissipation specification assumes a recommended thermal via design consisting of a 2x2 matrix of 0.3mm (12mil) vias at 1.0mm pitch c onnected to the ground plane with a 1.6 x 1.6mm thermal landing. note 2.4 junction to ambient ( ja ) is dependent on the design of t he thermal vias. without thermal vias and a thermal landing, the ja will be higher. table 2.1 absolute maximum ratings voltage on vdd pin -0.3 to 6.5 v voltage on cs pins to gnd -0.3 to 4.0 v voltage on 5v tolerant pins (v 5vt_pin ) -0.3 to 5.5 v voltage on 5v tolerant pins (|v 5vt_pin - v dd |) (see note 2.2 )0 to 3.6 v input current to any pin except vdd + 10 ma output short circuit current continuous n/a package power dissipation up to t a = 85c for 16-pin qfn (see note 2.3 ) 0.5 w junction to ambient ( ja ) (see note 2.4 )70 c/w operating ambient temperature range -40 to 125 c storage temperature range -55 to 150 c esd rating, all pins, hbm 8000 v
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 11 table 2.2 electrical specifications v dd = 3v to 5.5v, t a = 0c to 85c, all typical values at t a = 25c unless otherwise noted. characteristic symbol min typ max unit conditions dc power supply voltage v dd 3.0 5.5 v supply current i stby_def 120 170 a standby state active 1 sensor input monitored default conditions (8 avg, 70ms cycle time) i stby_lp 50 a standby state active 1 sensor input monitored 1 avg, 140ms cycle time i dsleep_3v 5tbda deep sleep state active no communications t a < 40c 3.135 < v dd < 3.465v i dsleep_5v tbd tbd a deep sleep state active no communications t a < 40c v dd = 5v i dd 500 750 a capacitive sensing active capacitive touch sensor inputs maximum base capacitance c base 50 pf pad untouched minimum detectable capacitive shift c touch 20 ff pad touched - default conditions recommended cap shift c touch 0.1 2 pf pad touched - not tested power supply rejection psr 3 10 counts / v untouched current counts base capacitance 5pf - 50pf negative delta counts disabled maximum sensitivity all other parameters default power-on and brown-out reset (see section 4.2, "reset" ) power-on reset voltage v por 1 1.3 v pin states defined power-on reset release voltage v porr 2.85 v rising v dd ensured by design brown-out reset v bor 2.8 v falling v dd vdd rise rate (ensures internal por signal) sv dd 0.05 v/ms 0 to 3v in 60ms
8-channel capacitive touch sensor datasheet ds00001570b-page 12 ? 2014 microchip technology inc. power-up timer period t pwrt 10 ms brown-out reset voltage delay t bordc 1sv dd = v bor - 1 timing time to communications ready t comm_dly 15 ms time to first conversion ready t conv_dly 170 200 ms i/o pins output low voltage v ol 0.4 v i sink_io = 8ma output high voltage v oh v dd - 0.4 vi source_io = 8ma input high voltage v ih 2.0 v input low voltage v il 0.8 v leakage current i leak 5 a powered or unpowered t a < 85c pull-up voltage < 3.6v if unpowered smbus timing input capacitance c in 5pf clock frequency f smb 10 400 khz spike suppression t sp 50 ns bus free time stop to start t buf 1.3 s start setup time t su:sta 0.6 s start hold time t hd:sta 0.6 s stop setup time t su:sto 0.6 s data hold time t hd:dat 0 s when transmitting to the master data hold time t hd:dat 0.3 s when receiving from the master data setup time t su:dat 0.6 s clock low period t low 1.3 s clock high period t high 0.6 s clock / data fall time t fall 300 ns min = 20+0.1c load ns table 2.2 electrical specifications (continued) v dd = 3v to 5.5v, t a = 0c to 85c, all typical values at t a = 25c unless otherwise noted. characteristic symbol min typ max unit conditions
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 13 clock / data rise time t rise 300 ns min = 20+0.1c load ns capacitive load c load 400 pf per bus line table 2.2 electrical specifications (continued) v dd = 3v to 5.5v, t a = 0c to 85c, all typical values at t a = 25c unless otherwise noted. characteristic symbol min typ max unit conditions
8-channel capacitive touch sensor datasheet ds00001570b-page 14 ? 2014 microchip technology inc. chapter 3 communications 3.1 communications the CAP1208 communicates using the smbus or i 2 c protocol. 3.2 system management bus the CAP1208 communicates with a host controller, such as an mchp sio, through the smbus. the smbus is a two-wire serial communication prot ocol between a computer host and its peripheral devices. a detailed timing diagram is shown in figure 3.1 . stretching of the smclk signal is supported; however, the CAP1208 will not stretch the clock signal. 3.2.1 smbus start bit the smbus start bit is defined as a transition of th e smbus data line from a logic ?1? state to a logic ?0? state while the smbus clock line is in a logic ?1? state. 3.2.2 smbus address and rd / wr bit the smbus address byte consists of the 7-bit client address followed by the rd / wr indicator bit. if this rd / wr bit is a logic ?0?, then the smbus host is wr iting data to the client device. if this rd / wr bit is a logic ?1?, then the smbus host is reading data from the client device. the CAP1208-1 responds to smbus address 0101_000(r/w). the CAP1208-2 responds to the smbus address 0101_001(r/w). 3.2.3 smbus data bytes all smbus data bytes are sent most significant bit first and composed of 8-bits of information. 3.2.4 smbus ack and nack bits the smbus client will acknowledge all data bytes that it receives. this is done by the client device pulling the smbus data line low after the 8th bit of each byte that is transmitted. this applies to both the write byte and block write protocols. figure 3.1 smbus timing diagram smdata smclk t buf p s s - start condition p - stop condition p s t high t low t hd:sta t su:sto t hd:sta t hd:dat t su:dat t su:sta t fall t rise
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 15 the host will nack (not acknowledge) the last data by te to be received from the client by holding the smbus data line high after the 8th data bit has been sent. for the block read protocol, the host will ack each data byte that it rece ives except the last data byte. 3.2.5 smbus stop bit the smbus stop bit is defined as a transition of the smbus data line from a logic ?0? state to a logic ?1? state while the smbus clock line is in a logic ?1? state. when the CAP1208 detects an smbus stop bit and it has been communicating with the smbus prot ocol, it will reset its client interface and prepare to receive further communications. 3.2.6 smbus timeout the CAP1208 includes an smbus timeout feature. following a 30ms period of inactivity on the smbus where the smclk pin is held low, the devic e will timeout and reset the smbus interface. the timeout function defaults to disabled. it can be enabled by setting the timeout bit in the configuration register (see section 5.6, "configuration registers" ). 3.2.7 smbus and i 2 c compatibility the major differences between smbus and i 2 c devices are highlighted here. for more information, refer to the smbus 2.0 specification. 1. CAP1208 supports i 2 c fast mode at 400khz. this covers the smbus max time of 100khz. 2. minimum frequency for smbus communications is 10khz. 3. the smbus client protocol will reset if the clock is held low longer than 30ms (timeout condition). this can be enabled in the CAP1208 by setting th e timeout bit in the configuration register. i 2 c does not have a timeout. 4. the smbus client protocol will reset if both the clock and the data line are high for longer than 200us (idle condition). this can be enabled in the CAP1208 by setting the timeout bit in the configuration register. i 2 c does not have an idle condition. 5. i 2 c devices do not support the alert response addre ss functionality (which is optional for smbus). 6. i 2 c devices support block read and write differently. i 2 c protocol allows for unlimited number of bytes to be sent in either direction. the smbus protocol requires that an additional data byte indicating number of bytes to read / writ e is transmitted. the CAP1208 supports i 2 c formatting only. 3.3 smbus protocols the CAP1208 is smbus 2.0 compatible and supports write byte, read byte, send byte, and receive byte as valid protocols as shown below. all of the below protocols use the convention in ta b l e 3 . 1 . table 3.1 protocol format data sent to device data sent to the host data sent data sent
8-channel capacitive touch sensor datasheet ds00001570b-page 16 ? 2014 microchip technology inc. 3.3.1 smbus write byte the write byte is used to write one byte of data to a specific register as shown in table 3.2 . note 3.1 CAP1208-1 only. for other addressing options, see section 3.2.2 . 3.3.2 smbus read byte the read byte protocol is used to read one byte of data from the registers as shown in table 3.3 . note 3.2 CAP1208-1 only. for other addressing options, see section 3.2.2 . 3.3.3 smbus send byte the send byte protocol is used to set the internal address register pointer to the correct address location. no data is transferred during the send byte protocol as shown in ta b l e 3 . 4 . application note: the send byte protocol is not functional in deep sleep (i.e., dsleep bit is set). note 3.3 CAP1208-1 only. for other addressing options, see section 3.2.2 . 3.3.4 smbus receive byte the receive byte protocol is used to read data from a register when the internal register address pointer is known to be at the right location (e.g. set via send byte). this is used for consecutive reads of the same register as shown in ta b l e 3 . 5 . application note: the receive byte protocol is not functional in deep sleep (i.e., dsleep bit is set). table 3.2 write byte protocol start slave address wr ack register address ack register data ack stop 1 ->0 0101_000 ( note 3.1 ) 0 0 xxh 0 xxh 0 0 -> 1 table 3.3 read byte protocol start slave address wr ack register address ack start client address rd ack register data nack stop 1->0 0101_000 ( note 3.2 ) 0 0 xxh 0 1 ->0 0101_000 ( note 3.2 ) 10 xxh 1 0 -> 1 table 3.4 send byte protocol start slave address wr ack register address ack stop 1 -> 0 0101_000 ( note 3.3 ) 0 0 xxh 0 0 -> 1
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 17 note 3.4 CAP1208-1 only. for other addressing options, see section 3.2.2 . 3.4 i 2 c protocols the CAP1208 supports i 2 c block read and block write. the protocols listed below use the convention in ta b l e 3 . 1 . 3.4.1 block read the block read is used to read multiple data by tes from a group of contig uous registers as shown in table 3.6 . application note: when using the block read protocol, the internal address pointer will be automatically incremented after every data byte is received. it will wrap from ffh to 00h. note 3.5 CAP1208-1 only. for other addressing options, see section 3.2.2 . . 3.4.2 block write the block write is used to write multiple data byte s to a group of contiguous registers as shown in table 3.7 . application note: when using the block write protocol, the in ternal address pointer will be automatically incremented after every data byte is received. it will wrap from ffh to 00h. table 3.5 receive byte protocol start slave address rd ack register data nack stop 1 -> 0 0101_000 ( note 3.4 ) 1 0 xxh 1 0 -> 1 table 3.6 block read protocol start slave address wr ack register address ack start slave address rd ack register data 1->0 0101_000 ( note 3.5 ) 0 0 xxh 0 1 ->0 0101_000 ( note 3.5 ) 10xxh ack register data ack register data ack register data ack . . . register data nack stop 0 xxh 0 xxh 0 xxh 0 . . . xxh 1 0 -> 1 table 3.7 block write protocol start slave address wr ack register address ack register data ack 1 ->0 0101_000 ( note 3.6 ) 0 0 xxh 0 xxh 0
8-channel capacitive touch sensor datasheet ds00001570b-page 18 ? 2014 microchip technology inc. note 3.6 CAP1208-1 only. for other addressing options, see section 3.2.2 .. register data ack register data ack . . . register data ack stop xxh 0 xxh 0 . . . xxh 0 0 -> 1 table 3.7 block write protocol
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 19 chapter 4 general description the CAP1208 is a multiple channel capacitive touch sensor. it contains eight (8) individual capacitive touch sensor inputs with programma ble sensitivity for use in touch sensor applications. each sensor input is calibrated to compensate for system parasitic capacitanc e and automatically recalibrated to compensate for gradual environmental changes. the CAP1208 includes multiple pattern touch recognition that allows the user to select a specific set of buttons to be touched simultaneously. if this pattern is detected, a status bit is set and an interrupt is generated. the CAP1208 has active and standby states, each wit h its own sensor input configuration controls. power consumption in the standby state is depende nt on the number of sensor inputs enabled as well as averaging, sampling time, and cycle time. deep sleep is the lowest power state available, drawing 5a (typical) of current. in this state, no sensor inputs are active, and communications will wake the device. the device communicates with a host controller using smbus / i 2 c. the host controller may poll the device for updated information at any time or it may configure the device to flag an interrupt whenever a touch is detected on any sensor pad. a typical system diagram is shown in figure 4.1 . figure 4.1 system diagram for CAP1208 CAP1208 cs6 smdata smclk embedded controller alert# cs7 cs8 cs3 cs2 cs1 cs4 cs5 touch button touch button touch button touch button touch button touch button touch button touch button vdd gnd 3.0v to 5.5v 10kohm resistors 3.0v to 5.5v 1.0uf 0.1uf
8-channel capacitive touch sensor datasheet ds00001570b-page 20 ? 2014 microchip technology inc. 4.1 power states the CAP1208 has 3 power states depending on the status of the stby and dsleep bits (see section 5.1, "main control register" ). when the device transitions betw een power states, previously detected touches (for channels that are being de-activated) are cleared and the sensor input status bits are reset. 1. active - the normal mode of operation. the devic e is monitoring capacitive sensor inputs enabled in the active state (see section 5.7, "sensor in put enable register" ). 2. standby - when the stby bit is set, the device is monitoring the capacitive sensor inputs enabled in the standby state (see section 5.21, "standby channel register" ). interrupts can still be generated based on the enabled channels. the device will still respond to communications normally and can be returned to the active state of operation by clearing the stby bit. power consumption in this state is dependent on t he number of sensor inputs enabled as well as averaging, sampling time, and cycle time. 3. deep sleep - when the dsleep bit is set, the device is in its lowest power state. it is not monitoring any capacitive sensor inputs. while in deep sleep, the CAP1208 can be awakened by smbus communications targ eting the device. this will not caus e the dsleep to be cleared so the device will return to deep sleep once all co mmunications have stopped. the device can be returned to the active state of operation by clearing the dsleep bit. 4.2 reset the power-on reset (por) circuit hol ds the device in reset until v dd has reached an acceptable level, power-on reset release voltage (v porr ), for minimum operation. t he power-up timer (pwrt) is used to extend the start-up period until all devic e operation conditions have been met. the power-up timer starts after v dd reaches v porr . por and porr with slow rising v dd is shown in figure 4.2 . the brown-out reset (bor) circuit holds the device in reset when v dd falls to a minimum level, v bor for longer than the bor reset delay (t bordc ). after a bor, when v dd rises above v porr , the power- up timer is started again and must finish before reset is released, as shown in figure 4.2 . 4.3 capacitive touch sensing the CAP1208 contains eight (8) independent capaciti ve touch sensor inputs. each sensor input has dynamic range to detect a change of capacitance due to a touch. additionally , each sensor input can be configured to be automatica lly and routinely recalibrated. figure 4.2 por and porr with slow rising v dd and bor with falling v dd v dd v bor t pwrt gnd undefined sysrst v por v porr t bordc t pwrt
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 21 4.3.1 capacitive touch sensing settings controls for managing capacitive touch sensor inputs are determined by the power state. 4.3.1.1 active state sensing settings the active state is used for normal operation. se nsor inputs being monitored are determined by the sensor input enabl e register (see section 5.7, "sensor input enable register" ). sensitivity is controlled by the sensitivity control register (see section 5.5, "sensitivity control register" ). averaging, sample time, and cycle time are controlled by the averaging and sampling configuration register (see section 5.10, "averaging and sa mpling configuration register" ). each channel can have a separate touch detection threshold, as defined in the sensor input threshold registers (see section 5.19, "sensor input threshold registers" ). 4.3.1.2 standby state sensing settings the standby state is used for standby operation. in general, fewer sensor inputs are enabled, and they are programmed to have more sensitivity. sensor inputs being monitored are determined by the standby channel register (see section 5.21, "standby channel register" ). sensitivity is controlled by the standby sensitivity register (see section 5.23, "standby sensitivity register" ). averaging, sample time, and cycle time are controlled by the aver aging and sampling configuration register (see section 5.22, "standby config uration register" ). there is one touch detection threshold, which applies to all sensors enabled in standby, as defined in the standby threshold register (see section 5.24, "standby threshold register" ). 4.3.2 sensing cycle except when in deep sleep, the de vice automatically initiates a s ensing cycle and repeats the cycle every time it finishes. the cycle polls through each enabled sensor input starting with cs1 and extending through cs8. as each capa citive touch sensor i nput is polled, its measurement is compared against a baseline ?not touched? measurement. if the delta meas urement is large enough to exceed the applicable threshold, a touch is detected and an interrupt can be generated (see section 4.8.2, "capacitive sensor input interrupt behavior" ). the sensing cycle time is programmable (see section 5.10, "averaging and sampling configuration register" and section 5.22, "standby configuration register" ). if all enabled inputs can be sampled in less than the cycle time, the device is placed into a lower power state for the remainder of the sensing cycle. if the number of active sensor inputs ca nnot be sampled within the specified cycle time, the cycle time is extended and the device is not placed in a lower power state. 4.4 sensor input calibration calibration sets the base count registers ( section 5.25, "sensor inpu t base count registers" ) which contain the ?not touched? values used for touc h detection comparisons. calibration automatically occurs after a power-on reset (por), when sample time is changed, and whenever a sensor input is newly enabled (for example, when transitioning from a power state in which it was disabled to a power state in which it is enabled). during calibration, th e analog sensing circuits are tuned to the capacitance of the untouched pad. then, samples are taken from each sensor input so t hat a base count can be established. after calibration, the untouched delta counts are zero. application note: during the calibration routine, the sensor inpu ts will not detect a press for up to 200ms and the sensor base count register values wi ll be invalid. in addition, any press on the corresponding sensor pads will invalidate the calibration. the host controller can force a calibration for select ed sensor inputs at any time using the calibration activate and status register ( section 5.11, "calibration activate and status register" ). when a bit is set, the corresponding capacitive touch sensor input will be calibrated (both analog and digital). the bit is automatically cleared once the cali bration routine has successfully finished.
8-channel capacitive touch sensor datasheet ds00001570b-page 22 ? 2014 microchip technology inc. if analog calibration fails for a sensor input, the corresponding bit is not cleared in the calibration activate and status register, and the acal_fail bit is set in the general status register ( section 5.2, "status registers" ). an interrupt can be generated. analog calibration will fail if a noise bit is set or if the calibration value is at the maximum or minimum value. if digital calibration fails to generate base counts for a sensor input in the operating range, which is + 12.5% from the idea l base count (see table 4.1 ), indicating the base capacitance is out of range, the corresponding bc_outx bit is set in the base count out of limit register ( section 5.17, "base count out of limit register" ), and the bc_out bit is set in the general status register ( section 5.2, "status registers" ). an interrupt can be generated. by default, when a base count is out of limit, analog calibration is repeated for the sensor input; alternatively, the sensor input c an be sampled using the out of limit base count ( section 5.6, "configuration registers" ). during normal operation there are various options fo r recalibrating the capacitive touch sensor inputs. recalibration is a digital adjustmen t of the base counts so that the untouched delta count is zero. after a recalibration, if a sensor in put?s base count has shifted + 12.5% from the ideal base count, a full calibration will be performed on the sensor input. 4.4.1 automatic recalibration each sensor input is regularly recalibrated at a programmable rate (see cal_cfg[2:0] in section 5.18, "recalibration configuration register" ). by default, the recalibration routine stores the average 64 previous measurements and periodically updates t he base ?not touched? setting for the capacitive touch sensor input. application note: automatic recalibration only works when the del ta count is below the active sensor input threshold. it is disabl ed when a touch is detected. 4.4.2 negative delta count recalibration it is possible that the device loses sensitivity to a touch. this may happen as a result of a noisy environment, recalibration when the pad is touched but delta counts do not exceed the threshold, or other environmental changes. when this occurs, the base untouched sensor input may generate negative delta count values. the neg_delta_cnt[1:0] bits (see section 5.18, "recalibration configuration register" ) can be set to force a recalibration af ter a specified number of consecutive negative delta readings. after a delayed recalibration (see section 4.4.3, "delayed recalibration" ) the negative delta count recalibration can co rrect after the touch is released. application note: during this recalibration, the device will not respond to touches. 4.4.3 delayed recalibration it is possible that a ?stuck button? occurs when some thing is placed on a button which causes a touch to be detected for a long period. by setting the max_dur_en bit (see section 5.6, "configuration registers" ), a recalibration can be forced when a touch is held on a button for longer than the duration specified in the max_ dur[3:0] bits (see section 5.8, "sensor inpu t configuration register" ). table 4.1 ideal base counts ideal base count sample time 3,200 320us 6,400 640us 12,800 1.28ms 25,600 2.56ms
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 23 note 4.1 delayed recalibration only works when the delta count is above the active sensor input threshold. if enabled, it is invoked when a sensor pad touch is held longer than the max_dur bit settings. note 4.2 for the power button, which requires that t he button be held longer than a regular button, the time specified by the max_dur[3:0] bits is added to the time required to trigger the qualifying event. this will prevent the power button from being recalibrated during the time it is supposed to be held. 4.5 power button the CAP1208 has a ?power button? feature. in genera l, buttons are set for quick response to a touch, especially when buttons are used for number ke ypads. however, there are cases where a quick response is not desired, such as when accidentally brushing the power button causes a device to turn off or on unexpectedly. the power button feature allows a sensor input to be designated as the ?power button? (see section 5.26, "power button register" ). the power button is configured so that a touch must be held on the button for a designated period of time before an inte rrupt is generated; different times can be selected for the standby and the active states (see section 5.27, "power button configuration register" ). the feature can also be enabled / disabled for both states separately. application note: for the power button feature to work in the standby and/or active states, the sensor input must be enabled in the applicable state. after the designated power button has been held fo r the designated time, an interrupt is generated and the pwr bit is set in the general status register (see section 5.2, "status registers" ). 4.6 multiple touc h pattern detection the multiple touch pattern (mtp) detection circuitry can be used to detect lid closure or other similar events. an event can be flagged based on either a minimum number of sensor inputs or on specific sensor inputs simultaneously exceeding an mtp thres hold or having their noise flag status register bits set. an interrupt can also be generated. du ring an mtp event, all touches are blocked (see section 5.15, "multiple touch pattern configuration register" ). 4.7 noise controls 4.7.1 low frequency noise detection each sensor input has a low frequency noise detector that will sense if low frequency noise is injected onto the input with sufficient power to corrupt the readings. by default, if this occurs, the device will reject the corrupted sample (see dis_ana_noise bit in section 5.6.1, "configuration - 20h" ) and the corresponding bit is set to a logic ?1? in the nois e flag status register (see show_rf_noise bit in section 5.6.2, "configuration 2 - 44h" ). 4.7.2 rf noise detection each sensor input contains an integrated rf nois e detector. this block will detect injected rf noise on the cs pin. the detector threshold is dependent upon the noise frequency. by default, if rf noise is detected on a cs line, that sample is removed and not compared against the threshold (see dis_rf_noise bit in section 5.6.2, "con figuration 2 - 44h" ). 4.7.3 noise status and configuration the noise flag status (see section 5.3, "noise flag status registers" ) bits can be used to indicate rf and/or other noise. if the show_rf_noi se bit in the configuration register (see section 5.6,
8-channel capacitive touch sensor datasheet ds00001570b-page 24 ? 2014 microchip technology inc. "configuration registers" ) is set to 0, the noise flag status bit for the capacitive sensor input is set if any analog noise is detected. if the show_rf_noise bit is set to 1, the noise flag status bits will only be set if rf noise is detected. the CAP1208 offers optional noise filtering controls for both analog and digital noise. for analog noise, there are option s for whether the data should be considered invalid. by default, the dis_ana_noise bit (see section 5.6.1, "configuration - 20h" ) will block a touch on a sensor input if low frequency analog noise is detected; the sample is discarded. by default, the dis_rf_noise bit (see section 5.6.2, "con figuration 2 - 44h" ) will block a touch on a sensor input if rf noise is detected; the sample is discarded. for digital noise, sensor input noise thresholds can be set (see section 5.20, "sensor input noise threshold register" ). if a capacitive touch sensor input e xceeds the sensor noise threshold but does not exceed the touch thresh old (sensor threshold (see section 5.19, "sensor input threshold registers" ) in the active state or sensor standby threshold in the standby state ( section 5.24, "standby threshold register" )), it is determined to be caused by a noise spike. the dis_dig_noise bit (see section 5.6.1, "configuration - 20h" ) can be set to discard sample s that indicate a noise spike so they are not used in the automatic recalibration routine (see section 4.4.1, "automatic recalibration" ). 4.8 interrupts interrupts are indicated by the setting of the int bit in the main control register (see section 5.1, "main control register" ) and by assertion of the alert# pin. the alert# pin is cleared when the int bit is cleared by the user. when the int bit is cleared by the user, status bits may be cleared (see section 5.2, "status registers" ). 4.8.1 alert# pin the alert# pin is an active low output that is driven when an interrupt event is detected. 4.8.2 capacitive sensor input interrupt behavior each sensor input can be programmed to enable / disable interrupts (see section 5.12, "interrupt enable register" ). when enabled for a sensor input and the sensor i nput is not the designated power button, interrupts are generated in one of two ways: 1. an interrupt is generated when a touch is detect ed and, as a user selectable option, when a release is detected (by default - see int_rel_n in section 5.6.2, "con figuration 2 - 44h" ). see figure 4.4 . 2. if the repeat rate is enabled then, so long as th e touch is held, another interrupt will be generated based on the programmed repeat rate (see figure 4.3 ). when the repeat rate is enabled for a sensor input (see section 5.13, "repeat rate enable register" ), the device uses an additional control called mpress th at determines whether a touch is flagged as a simple ?touch? or a ?press and hold? (see section 5.9, "sensor input configuration 2 register" ). the mpress[3:0] bits set a minimum press timer. when the button is touched, the timer begins. if the sensor pad is released before the minimum pres s timer expires, it is flagged as a touch and an interrupt (if enabled) is generated upon release. if the sensor input detects a touch for longer than this timer value, it is flagged as a ?press and hold? even t. so long as the touch is held, interrupts will be generated at the programmed repeat rate (see section 5.8, "sensor input configuration register" ) and upon release (if enabled). if a sensor input is th e designated power button, an interrupt is not generated as soon as a touch is detected and repeat rate is not applicable. see section 4.8.3, "interrupt s for the power button" .
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 25 application note: figure 4.3 and figure 4.4 show default operation which is to generate an interrupt upon sensor pad release. application note: the host may need to poll the device twice to determine that a release has been detected. 4.8.3 interrupts for the power button interrupts are automatically enabled for the power button when the feature is enabled (see section 4.5, "power button" ). a touch must be held on the power button for the designated period of time before an interrupt is generated. figure 4.3 sensor interrupt behavior - repeat rate enabled figure 4.4 sensor interrupt behavior - no repeat rate enabled touch detected int bit button status write to int bit sensing cycle (35ms) min press setting (280ms) interrupt on touch button repeat rate (175ms) button repeat rate (175ms) interrupt on release (optional) alert# pin touch detected int bit button status write to int bit sensing cycle (35ms) interrupt on touch interrupt on release (optional) alert# pin
8-channel capacitive touch sensor datasheet ds00001570b-page 26 ? 2014 microchip technology inc. 4.8.4 interrupts for multiple touch pattern detection an interrupt can be generated when the mtp pattern is matched (see section 5.15, "multiple touch pattern configuration register" ). 4.8.5 interrupts for sensor input calibration failures an interrupt can be generated when the acal_fail bit is set, indicating the failure to complete analog calibration of one or more sensor inputs (see section 5.2, "status registers" ). this interrupt can be enabled by setting the acal_fail_int bit (see section 5.6, "configuration registers" ). an interrupt can be generated when the bc_out bit is set, indicating the base count is out of limit for one or more sensor inputs (see section 5.2, "status registers" ). this interrupt can be enabled by setting the bc_out_int bit (see section 5.6, "configuration registers" ). 4.8.6 interrupts for reset when the CAP1208 comes out of reset, an inte rrupt is generated, and the reset bit is set.
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 27 chapter 5 register description the registers shown in ta b l e 5 . 1 are accessible through the communications protocol. an entry of ?-? indicates that the bit is not used and will always read ?0?. table 5.1 register set in hexadecimal order register address r/w register name function default value page 00h r/w main control controls power states and indicates an interrupt 00h page 30 02h r/w general status stores general status bits 00h page 31 03h r sensor input status returns the state of the sampled capacitive touch sensor inputs 00h page 31 0ah r noise flag status stores the noise flags for sensor inputs 00h page 32 10h r sensor input 1 delta count stores the delta count for cs1 00h page 33 11h r sensor input 2 delta count stores the delta count for cs2 00h page 33 12h r sensor input 3 delta count stores the delta count for cs3 00h page 33 13h r sensor input 4 delta count stores the delta count for cs4 00h page 33 14h r sensor input 5 delta count stores the delta count for cs5 00h page 33 15h r sensor input 6 delta count stores the delta count for cs6 00h page 33 16h r sensor input 7 delta count stores the delta count for cs7 00h page 33 17h r sensor input 8 delta count stores the delta count for cs8 00h page 33 1fh r/w sensitivity control controls the sens itivity of the threshold and delta counts and data scaling of the base counts 2fh page 33 20h r/w configuration controls general functionality 20h page 35 21h r/w sensor input enable controls which sensor inputs are monitored in active ffh page 37 22h r/w sensor input configuration controls max duration and auto- repeat delay a4h page 37 23h r/w sensor input configuration 2 controls the mpress (?press and hold?) setting 07h page 39 24h r/w averaging and sampling config controls averaging and sampling window for active 39h page 40
8-channel capacitive touch sensor datasheet ds00001570b-page 28 ? 2014 microchip technology inc. 26h r/w calibration activate and status forces calibration for capacitive touch sensor inputs and indicates calibration failure 00h page 42 27h r/w interrupt enable determines which capacitive sensor inputs can generate interrupts ffh page 43 28h r/w repeat rate enable enables repeat rate for specific sensor inputs ffh page 43 2ah r/w multiple touch configuration determines the number of simultaneous touches to flag a multiple touch condition 80h page 44 2bh r/w multiple touch pattern configuration determines the multiple touch pattern (mtp) configuration 00h page 45 2dh r/w multiple touch pattern determines the pattern or number of sensor inputs used by the mtp circuitry ffh page 46 2eh r base count out of limit indicates whether sensor inputs have a base count out of limit 00h page 47 2fh r/w recalibration configuration determines recalibration timing and sampling window 8ah page 48 30h r/w sensor input 1 threshold stores the touch detection threshold for active for cs1 40h page 49 31h r/w sensor input 2 threshold stores the touch detection threshold for active for cs2 40h page 49 32h r/w sensor input 3 threshold stores the touch detection threshold for active for cs3 40h page 49 33h r/w sensor input 4 threshold stores the touch detection threshold for active for cs4 40h page 49 34h r/w sensor input 5 threshold stores the touch detection threshold for active for cs5 40h page 49 35h r/w sensor input 6 threshold stores the touch detection threshold for active for cs6 40h page 49 36h r/w sensor input 7 threshold stores the touch detection threshold for active for cs7 40h page 50 37h r/w sensor input 8 threshold stores the touch detection threshold for active for cs8 40h 38h r/w sensor input noise threshold stores controls for selecting the noise threshold for all sensor inputs 01h page 50 standby configuration registers 40h r/w standby channel controls which sensor inputs are enabled for standby 00h page 51 41h r/w standby configuration controls averaging and sensing cycle time for standby 39h page 51 table 5.1 register set in hexadecimal order (continued) register address r/w register name function default value page
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 29 42h r/w standby sensitivity controls sensitivity settings used for standby 02h page 53 43h r/w standby threshold stores the touch detection threshold for standby 40h page 54 44h r/w configuration 2 stores additional configuration controls for the device 40h page 35 base count registers 50h r sensor input 1 base count stores the reference count value for sensor input 1 c8h page 54 51h r sensor input 2 base count stores the reference count value for sensor input 2 c8h page 54 52h r sensor input 3 base count stores the reference count value for sensor input 3 c8h page 54 53h r sensor input 4 base count stores the reference count value for sensor input 4 c8h page 54 54h r sensor input 5 base count stores the reference count value for sensor input 5 c8h page 54 55h r sensor input 6 base count stores the reference count value for sensor input 6 c8h page 54 56h r sensor input 7 base count stores the reference count value for sensor input 7 c8h page 54 57h r sensor input 8 base count stores the reference count value for sensor input 8 c8h page 54 power button registers 60h r/w power button specifies the power button 00h page 55 61h r/w power button configuration configures the power button feature 22h page 55 calibration registers b1h r sensor input 1 calibration stores the upper 8-bit calibration value for cs1 00h page 56 b2h r sensor input 2 calibration stores the upper 8-bit calibration value for cs2 00h page 56 b3h r sensor input 3 calibration stores the upper 8-bit calibration value for cs3 00h page 56 b4h r sensor input 4 calibration stores the upper 8-bit calibration value for cs4 00h page 56 b5h r sensor input 5 calibration stores the upper 8-bit calibration value for cs5 00h page 56 b6h r sensor input 6 calibration stores the upper 8-bit calibration value for cs6 00h page 56 table 5.1 register set in hexadecimal order (continued) register address r/w register name function default value page
8-channel capacitive touch sensor datasheet ds00001570b-page 30 ? 2014 microchip technology inc. during power-on reset (por), the default values ar e stored in the registers. a por is initiated when power is first applied to the part and the vo ltage on the vdd supply surpasses the por level as specified in the electrical characteristics. when a bit is ?set?, this means it?s at a logic ?1?. w hen a bit is ?cleared?, this means it?s at a logic ?0?. 5.1 main control register the main control register controls the primary power state of the device (see section 4.1, "power states" ). bit 5 - stby - enables standby. ? ?0? (default) - the device is not in the standby state. ? ?1? - the device is in the standby state. capaciti ve touch sensor input scanning is limited to the sensor inputs set in the standby channel register (see section 5.21, "standby channel register" ). the status registers will not be cleared until re ad. sensor inputs that are no longer sampled will flag a release and then remain in a non-touched state. bit 4 - dsleep - enables deep sleep. ? ?0? (default) - the device is not in the deep sleep state. ? ?1? - the device is in the deep sleep state. all sensor input scanning is disabled. the status registers are automatically cleared and the int bit is cleared. when this bit is set, the stby bit has no effect. b7h r sensor input 7 calibration stores the upper 8-bit calibration value for cs7 00h page 56 b8h r sensor input 8 calibration stores the upper 8-bit calibration value for cs8 00h page 56 b9h r sensor input calibration lsb 1 stores the 2 lsbs of the calibration value for cs1 - cs4 00h page 56 bah r sensor input calibration lsb 2 stores the 2 lsbs of the calibration value for cs5 - cs8 00h page 56 id registers fdh r product id stores a fixed value that identifies the CAP1208 6bh page 57 feh r manufacturer id stores a fixed value that identifies mchp 5dh page 57 ffh r revision stores a fixed value that represents the revision number 00h page 57 table 5.2 main control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 00h r/w main control - - stby dsleep - - - int 00h table 5.1 register set in hexadecimal order (continued) register address r/w register name function default value page
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 31 bit 0 - int - indicates that there is an interrupt (see section 4.8, "interrupts" ). when this bit is set, it asserts the alert# pin. if a channel detects a touch but interrupts are not enabled for that channel (see section 5.12, "interr upt enable register" ), no action is taken. this bit is cleared by writing a logic ?0? to it. when this bit is cleared, the alert# pin will be deasserted, and all status registers will be cleared if the condition has been removed. ? ?0? - no interrupt pending. ? ?1? - an interrupt condition occurred, and the alert# pin has been asserted. 5.2 status registers all status bits are cleared when the devic e enters deep sleep (dsleep = ?1? - see section 5.1, "main control register" ). 5.2.1 general status - 02h bit 6 - bc_out - indicates that the base count is out of limit for one or more enabled sensor inputs (see section 4.4, "sensor input calibration" ). this bit will not be cleared until all enabled sensor inputs have base counts within the limit. ? ?0? - all enabled sensor inputs have base counts in the operating range. ? ?1? - one or more enabled sensor inputs has the base count out of limit. a status bit is set in the base count out of limit register (see section 5.17, "base count out of limit register" ). bit 5 - acal_fail - indicates analog calibration failure for one or more enabled sensor inputs (see section 4.4, "senso r input calibration" ). this bit will not be cleared until all enabled sensor inputs have successfully completed analog calibration. ? ?0? - all enabled sensor inputs were successfully calibrated. ? ?1? - one or more enabled sensor inputs failed a nalog calibration. a status bit is set in the calibration active register (see section 5.11, "calibration activate and status register" ). bit 4 - pwr - indicates that the designated power button has been held for the designated time (see section 4.5, "power button" ). this bit will cause the int bit to be set. this bit is cleared when the int bit is cleared if there is no longer a touch on the power button. ? ?0? - the power button has not been held for the required time or is not enabled. ? ?1? - the power button has been held for the required time. bit 3 - reset - indicates th at the device has come ou t of reset. this bit is set when the device exits a por state. this bit will cause the int bit to be set and is cleared when the int bit is cleared. bit 2 - mult - indicates that the device is blocking detected touches due to the multiple touch detection circuitry (see section 5.14, "multiple touch configuration register" ). this bit will not cause the int bit to be set and hence will not cause an interrupt. bit 1 - mtp - indicates that the device has detect ed a number of sensor i nputs that exceed the mtp threshold either via the pattern recognition or via the number of sensor inputs (see section 5.15, "multiple touch pattern configuration register" ). this bit will cause the int bit to be set if the table 5.3 status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 02h r general status - bc_ out acal _fail pwr reset mult mtp touch 00h 03h r sensor input status cs8 cs7 cs6 cs5 cs4 cs3 cs2 cs1 00h
8-channel capacitive touch sensor datasheet ds00001570b-page 32 ? 2014 microchip technology inc. mtp_alert bit is also set. this bit is cleared when the int bit is cleared if the condition that caused it to be set has been removed. bit 0 - touch - indicates that a touch was detected. th is bit is set if any bit in the sensor input status register is set. 5.2.2 sensor input status - 03h the sensor input status register stores status bits that indicate a touch has been detected. a value of ?0? in any bit indicates that no touch has been detected. a value of ?1? in any bit indicates that a touch has been detected. all bits are cleared when the int bit is cleared and if a touch on the respective capacitive touch sensor input is no longer present. if a touch is still detected, the bits will not be cleared (but this will not cause the interrupt to be asserted). bit 7 - cs8 - indicates that a touch was detected on sensor input 8. bit 6 - cs7 - indicates that a touch was detected on sensor input 7. bit 5 - cs6 - indicates that a touch was detected on sensor input 6. bit 4 - cs5 - indicates that a touch was detected on sensor input 5. bit 3 - cs4 - indicates that a touch was detected on sensor input 4. bit 2 - cs3 - indicates that a touch was detected on sensor input 3. bit 1 - cs2 - indicates that a touch was detected on sensor input 2. bit 0 - cs1 - indicates that a touch was detected on sensor input 1. 5.3 noise flag status registers the noise flag status registers st ore status bits that can be used to indicate that the analog block detected noise above the oper ating region of the analog detector or the rf noise detector (see section 4.7.3, "noise status and configuration" ). these bits indicate that the most recently received data from the sensor input is invalid and should not be used for touch detection. so long as the bit is set for a particular channel, the delta count value is reset to 00h and thus no touch is detected. these bits are not sticky and will be cleared au tomatically if the analog block does no t report a noise error. application note: if the mtp detection circuitry is enabled, thes e bits count as sensor inputs above the mtp threshold (see section 4.6, "multiple touch pattern detection" ) even if the corresponding delta count is not. if the corresponding delta co unt also exceeds the mtp threshold, it is not counted twice. application note: regardless of the state of t he noise status bits, if low frequency noise is detected on a sensor input, that sample will be discarded unless the dis_ana_noise bit is set. as well, if rf noise is detected on a sensor i nput, that sample will be discarded unless the dis_rf_noise bit is set. table 5.4 noise flag status registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 0ah r noise flag status cs8_ noise cs7_ noise cs6_ noise cs5_ noise cs4_ noise cs3_ noise cs2_ noise cs1_ noise 00h
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 33 5.4 sensor input delta count registers the sensor input delta count regi sters store the delta count that is compared against the threshold used to determine if a touch has been detected. the count value represents a change in input due to the capacitance associated with a touch on one of the sensor inputs and is referenced to a calibrated base ?not touched? count value. the delta is an in stantaneous change and is updated once per sensor input per sensing cycle (see section 4.3.2, "sensing cycle" ). the value presented is a standard 2?s complement nu mber. in addition, the value is capped at a value of 7fh. a reading of 7fh indicates that the sensit ivity settings are too high and should be adjusted accordingly (see section 5.5 ). the value is also capped at a negative value of 80h for negative delta counts which may result upon a release. 5.5 sensitivity control register the sensitivity control register controls the sensitivity of a touch detection. bits 6-4 delta_sense[2:0] - controls the sensitiv ity of a touch detection for sensor inputs enabled in the active state. the sensitivity settings act to scale the relative delta count value higher or lower based on the system parameters. a sett ing of 000b is the most sensitiv e while a setting of 111b is the least sensitive. at the more sensitive settings, touches are detected for a smaller delta capacitance table 5.5 sensor input delta count registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 10h r sensor input 1 delta count sign 64 32 16 8 4 2 1 00h 11h r sensor input 2 delta count sign 64 32 16 8 4 2 1 00h 12h r sensor input 3 delta count sign 64 32 16 8 4 2 1 00h 13h r sensor input 4 delta count sign 64 32 16 8 4 2 1 00h 14h r sensor input 5 delta count sign 64 32 16 8 4 2 1 00h 15h r sensor input 6 delta count sign 64 32 16 8 4 2 1 00h 16h r sensor input 7 delta count sign 64 32 16 8 4 2 1 00h 17h r sensor input 8 delta count sign 64 32 16 8 4 2 1 00h table 5.6 sensitivity control register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 1fh r/w sensitivity control - del ta_sense[2:0] base_shift[3:0] 2fh
8-channel capacitive touch sensor datasheet ds00001570b-page 34 ? 2014 microchip technology inc. corresponding to a ?lighter? touch. these settings are more sensitive to noise, however, and a noisy environment may flag more false touc hes with higher sensitivity levels. application note: a value of 128x is the most sensitive setting av ailable. at the most sensitive settings, the msb of the delta count register represents 64 out of ~25,000 which corresponds to a touch of approximately 0.25% of the base capacitance (or a c of 25ff from a 10pf base capacitance). conversely, a value of 1x is t he least sensitive setting available. at these settings, the msb of the delta count register corresponds to a delta count of 8192 counts out of ~25,000 which corresponds to a touch of approximately 33% of the base capacitance (or a c of 3.33pf from a 10pf base capacitance). bits 3 - 0 - base_shift[3:0] - contro ls the scaling an d data presentation of the base count registers. the higher the value of these bits, the larger the range and the lower the resolution of the data presented. the scale factor repres ents the multiplier to the bit-we ighting presented in these register descriptions. application note: the base_shift[3:0] bits normall y do not need to be updated. t hese settings will not affect touch detection or sensitivity. these bits ar e sometimes helpful in analyzing the cap sensing board performance and stability. table 5.7 delta_sense bit decode delta_sense[2:0] sensitivity multiplier 210 0 0 0 128x (most sensitive) 001 64x 0 1 0 32x (default) 011 16x 100 8x 101 4x 110 2x 1 1 1 1x - (least sensitive) table 5.8 base_shift bit decode base_shift[3:0] data scaling factor 32 1 0 00 0 0 1x 00 0 1 2x 00 1 0 4x 00 1 1 8x 01 0 0 16x 01 0 1 32x
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 35 5.6 configuration registers the configuration registers control general glo bal functionality that af fects the entire device. 5.6.1 configuration - 20h bit 7 - timeout - enables the timeout and idle functionality of the smbus protocol. ? ?0? (default) - the smbus timeout and idle functi onality are disabled. the smbus interface will not time out if the clock line is held low. likewise, it will not reset if both the data and clock lines are held high for longer than 200us. ? ?1? - the smbus timeout and idle functionality are enabled. the smbus interface will reset if the clock line is held low for longer than 30ms. likewise, it will reset if both the data and clock lines are held high for longer than 200us. bit 5 - dis_dig_noise - determines whet her the digital noise threshold (see section 5.20, "sensor input noise threshold register" ) is used by the device. setting this bit disables the feature. ? ?0? - the digital noise threshold is used. if a delt a count value exceeds the noise threshold but does not exceed the touch threshold, the sample is discarded and not used for the automatic recalibration routine. ? ?1? (default) - the noise threshold is disabled. an y delta count that is less than the touch threshold is used for the automatic recalibration routine. bit 4 - dis_ana_noise - determines whether the analog noise filter is enabled. setting this bit disables the feature. ? ?0? (default) - if low frequency no ise is detected by the analog block, the delta count on the corresponding channel is set to 0. note that this does not require that noise status bits be set. ? ?1? - a touch is not blocked even if low frequency noise is detected. bit 3 - max_dur_en - determines whether the maximum duration recalibration is enabled. 01 1 0 64x 0 1 1 1 128x 1 0 0 0 256x all others 256x (default = 1111b) table 5.9 configuration registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 20h r/w configuration time out - dis_ dig_ noise dis_ ana_ noise max_ dur_en - - - 20h 44h r/w configuration 2 - bc_ out_ recal blk_ pwr_ ctrl bc_ out_ int show_ rf_ noise dis_ rf_ noise acal _fail _int int_ rel_ n 40h table 5.8 base_shift bit decode (continued) base_shift[3:0] data scaling factor 32 1 0
8-channel capacitive touch sensor datasheet ds00001570b-page 36 ? 2014 microchip technology inc. ? ?0? (default) - the maximum duratio n recalibration functionality is disabled. a touch may be held indefinitely and no recalibration will be performed on any sensor input. ? ?1? - the maximum duration recalibration functionality is enabled. if a touch is held for longer than the max_dur bit settings (see section 5.8 ), the recalibration routine will be restarted (see section 4.4.3, "delayed recalibration" ). 5.6.2 configuration 2 - 44h bit 6 - bc_out_recal - controls whether to retry analog calibration when the base count is out of limit for one or more sensor inputs. ? ?0? - when the bc_outx bit is set for a sensor in put, the out of limit base count will be used for the sensor input. ? ?1? (default) - when the bc_outx bi t is set for a sensor input (see section 5.17, "base count out of limit register" ), analog calibration will be repeated on the sensor input. bit 5 - blk_pwr_ctrl - determines whether the de vice will reduce power consumption while waiting between conversion time completion and the end of th e sensing cycle. ? ?0? (default) - the device will reduc e power consumption during the time between the end of the last conversion and the end of the sensing cycle. ? ?1? - the device will not reduce power consumptio n during the time between the end of the last conversion and the end of the sensing cycle. bit 4 - bc_out_int - controls the interrupt behavio r when the base count is out of limit for one or more sensor inputs. ? ?0? (default) - an interrupt is not gener ated when the bc_out bit is set (see section 5.2, "status registers" ). ? ?1? - an interrupt is generated when the bc_out bit is set. bit 3 - show_rf_noise - determines whether the noise status bits will show rf noise as the only input source. ? ?0? (default) - the noise status registers will show both rf noise and low frequency noise if either is detected on a capacitive touch sensor input. ? ?1? - the noise status registers will only show rf noise if it is detected on a ca pacitive touch sensor input. low frequency noise will still be detected and touches will be blocked normally; however, the status bits will not be updated. bit 2 - dis_rf_noise - determines whether the rf no ise filter is enabled. se tting this bit disables the feature. ? ?0? (default) - if rf noise is detected by the analog block, the delta count on the corresponding channel is set to 0. note that this does not require that noise status bits be set. ? ?1? - a touch is not blocked even if rf noise is detected. bit 1 - acal_fail_int - controls the interrupt behav ior when analog calibration fails for one or more sensor inputs (see section 4.4, "sensor input calibration" ). ? ?0? (default) - an interrupt is not generated when the acal_fail bit is set (see section 5.2, "status registers" ). ? ?1? - an interrupt is generated when the acal_fail bit is set bit 0 - int_rel_n - controls the interrupt behavior when a release is detected on a button (see section 4.8.2, "capacitive sens or input interrupt behavior" ). ? ?0? (default) - an interrupt is generated when a pr ess is detected and again when a release is detected and at the repeat rate (if enabled - see section 5.13 ). ? ?1? - an interrupt is generated when a press is detected and at the repeat rate but not when a release is detected.
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 37 5.7 sensor inpu t enable register the sensor input enable register determines whet her a capacitive touch sensor input is included in the sensing cycle in the active state. for all bits in this register: ? ?0? - the specified input is not included in the sensin g cycle in the active state. ? ?1? (default) - the specified in put is included in the sensi ng cycle in the active state. bit 7 - cs8_en - determines whether the cs8 input is monitored in the active state. bit 6 - cs7_en - determines whether the cs7 input is monitored in the active state. bit 5 - cs6_en - determines whether the cs6 input is monitored in the active state. bit 4 - cs5_en - determines whether the cs5 input is monitored in the active state. bit 3 - cs4_en - determines whether the cs4 input is monitored in the active state. bit 2 - cs3_en - determines whether the cs3 input is monitored in the active state. bit 1 - cs2_en - determines whether the cs2 input is monitored in the active state. bit 0 - cs1_en - determines whether the cs1 input is monitored in the active state. 5.8 sensor input co nfiguration register the sensor input configurat ion register controls timings associated with the capacitive sensor inputs. bits 7 - 4 - max_dur[3:0] - (default 1010b) - de termines the maximum time that a sensor pad is allowed to be touched until the capacitive touch sensor input is recalibrated (see section 4.4.3, "delayed recalibration" ), as shown in ta b l e 5 . 1 2 . table 5.10 sensor input enable register addrr/wregisterb7 b6 b5b4b3b2b1b0default 21h r/w sensor input enable cs8_en cs7_en cs6_en cs5_en cs4_en cs3_en cs2_en cs1_en ffh table 5.11 sensor input configuration register addrr/w register b7 b6 b5b4b3b2b1b0default 22h r/w sensor input configuration max_dur[3:0] rpt_rate[3:0] a4h table 5.12 max_dur bit decode max_dur[3:0] time before recalibration 32 1 0 0 0 0 0 560ms 0 0 0 1 840ms
8-channel capacitive touch sensor datasheet ds00001570b-page 38 ? 2014 microchip technology inc. bits 3 - 0 - rpt_rate[3:0] - (default 0100b) determines the time duration between interrupt assertions when auto repeat is enabled (see section 4.8.2, "capacitive sens or input interrupt behavior" ). the resolution is 35ms and the range is from 35ms to 560ms as shown in table 5.13 . 0 0 1 0 1120ms 0 0 1 1 1400ms 0 1 0 0 1680ms 0 1 0 1 2240ms 0 1 1 0 2800ms 0 1 1 1 3360ms 1 0 0 0 3920ms 1 0 0 1 4480ms 1 0 1 0 5600ms (default) 1 0 1 1 6720ms 1 1 0 0 7840ms 1 1 0 1 8906ms 1 1 1 0 10080ms 1 1 1 1 11200ms table 5.13 rpt_rate bit decode rpt_rate[3:0] interrupt repeat rate 3210 0000 35ms 0001 70ms 0 0 1 0 105ms 0 0 1 1 140ms 0 1 0 0 175ms (default) 0 1 0 1 210ms 0 1 1 0 245ms 0 1 1 1 280ms 1 0 0 0 315ms 1 0 0 1 350ms table 5.12 max_dur bit decode (continued) max_dur[3:0] time before recalibration 32 1 0
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 39 5.9 sensor input co nfiguration 2 register bits 3 - 0 - m_press[3:0] - (default 0111b) - dete rmines the minimum amount of time that sensor inputs configured to use auto repeat must detect a sensor pad touch to detect a ?press and hold? event (see section 4.8.2, "capacitive se nsor input interrupt behavior" ). if the sensor input detects a touch for longer than the m_press[ 3:0] settings, a ?press and hold? ev ent is detected. if a sensor input detects a touch for less than or equal to the m_ press[3:0] settings, a t ouch event is detected. the resolution is 35ms and the range is from 35ms to 560ms as shown in table 5.15 . 1 0 1 0 385ms 1 0 1 1 420ms 1 1 0 0 455ms 1 1 0 1 490ms 1 1 1 0 525ms 1 1 1 1 560ms table 5.14 sensor input configuration 2 register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 23h r/w sensor input configuration 2 - - - - m_press[3:0] 07h table 5.15 m_press bit decode m_press[3:0] m_press settings 3210 0000 35ms 0001 70ms 0 0 1 0 105ms 0 0 1 1 140ms 0 1 0 0 175ms 0 1 0 1 210ms 0 1 1 0 245ms 0 1 1 1 280ms (default) 1 0 0 0 315ms table 5.13 rpt_rate bit decode (continued) rpt_rate[3:0] interrupt repeat rate 3210
8-channel capacitive touch sensor datasheet ds00001570b-page 40 ? 2014 microchip technology inc. 5.10 averaging and sampling configuration register the averaging and sampling configuration register controls the number of samples taken and the target sensing cycle time for sensor inputs enabled in the active state. bits 6 - 4 - avg[2:0] - determines the number of samples that are taken for all channels enabled in the active state during the sensing cycle as shown in table 5.17 . all samples are taken consecutively on the same channel before the next channel is sa mpled and the result is averaged over the number of samples measured before upd ating the measured results. for example, if cs1, cs2, and cs3 are sampled during the sensing cycle, and the avg[ 2:0] bits are set to take 4 samples per channel, then the full sens ing cycle will be: cs1, cs1, cs1, cs1, cs2, cs2, cs2, cs2, cs3, cs3, cs3, cs3. 1 0 0 1 350ms 1 0 1 0 385ms 1 0 1 1 420ms 1 1 0 0 455ms 1 1 0 1 490ms 1 1 1 0 525ms 1 1 1 1 560ms table 5.16 averaging and sampling configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 24h r/w averaging and sampling config - avg[2:0] samp_time[1:0] cycle_time [1:0] 39h table 5.17 avg bit decode avg[2:0] number of samples taken per measurement 210 000 1 001 2 010 4 0 1 1 8 (default) 100 16 101 32 table 5.15 m_press bit decode (continued) m_press[3:0] m_press settings 3210
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 41 bits 3 - 2 - samp_time[1:0] - determines the ti me to take a single sample as shown in ta b l e 5 . 1 8 . sample time affects the magnitude of the base counts, as shown in table 4.1, "ideal base counts" . bits 1 - 0 - cycle_time[1 :0] - determines the desired sensing cycl e time for channels enabled in the active state, as shown in table 5.19 . all enabled channels are sampled at the beginning of the sensing cycle. if additional time is remaining, the device is placed into a lower power state for the remainder of the sensing cycle. application note: the programmed sensing cycle time (cycle_time[1:0]) is only ma intained if the actual time to take the samples is less than the programmed cycle time. the avg[2:0] bits will take priority, so the sensing cycle time will be extended as necessary to accommodate the number of samples to be measured. 110 64 1 1 1 128 table 5.18 samp_time bit decode samp_time[1:0] sample time 10 0 0 320us 0 1 640us 1 0 1.28ms (default) 1 1 2.56ms table 5.19 cycle_time bit decode cycle_time[1:0] programmed sensing cycle time 10 00 35ms 0 1 70ms (default) 1 0 105ms 1 1 140ms table 5.17 avg bit decode (continued) avg[2:0] number of samples taken per measurement 210
8-channel capacitive touch sensor datasheet ds00001570b-page 42 ? 2014 microchip technology inc. 5.11 calibration acti vate and status register the calibration activate and status register serves a dual function: 1. it forces the selected sensor inputs to be ca librated, affecting both the analog and digital blocks (see section 4.4, "sensor input calibration" ). when one or more bits are set, the device performs the calibration routine on the corresponding sens or inputs. when the analog calibration routine is finished, the calx[9:0] bits are updated (see section 5.28, "sensor input calibration registers" ). if the analog calibration routine completed successf ully for a sensor input, the corresponding bit is automatically cleared. application note: in the case above, bits can be set by host or are automatically set by the device whenever a sensor input is newly enabled (such as comi ng out of deep sleep, after power-on reset, when a bit is set in the sensor enable channel enable register (21h) and the device is in the active state, or when a bit is set in th e standby channel enable register (40h) and the device is in the standby state). 2. it serves as an indicator of an analog calibration failure. if any of the bits could not be cleared, the acal_fail bit is set (see section 5.2, "status registers" ). a bit will fail to clear if a noise bit is set or if the calibration value is at the maximum or minimum value. application note: in the case above, do not check the calibration activate and status bits for failures unless the acal_fail bit is set. in addition, if a se nsor input is newly enabled, do not check the calibration activate and status bits until time has elapsed to complete calibration on the sensor input. otherwise, the acal_fail bit may be set for one sensor input, but the newly enabled sensor input may still be set to ?1? in the calibration activate and status, not because it failed, but because it has not been calibrated yet. for all bits in this register: ? ?0? - no action needed. ? ?1? - writing a ?1?, forces a calibration on the co rresponding sensor input. if the acal_fail flag is set and this bit is set (see application note abov e), the sensor input could not complete analog calibration. bit 7 - cs8_cal - bit for cs8 input. bit 6 - cs7_cal - bit for cs7 input. bit 5 - cs6_cal - bit for cs6 input. bit 4 - cs5_cal - bit for cs5 input. bit 3 - cs4_cal - bit for cs4 input. bit 2 - cs3_cal - bit for cs3 input. bit 1 - cs2_cal - bit for cs2 input. bit 0 - cs1_cal - bit for cs1 input. table 5.20 calibration activate and status register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 26h r/w calibration activate and status cs8_ cal cs7_ cal cs6_ cal cs5_ cal cs4_ cal cs3_ cal cs2_ cal cs1_ cal 00h
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 43 application note: writing a ?0? to clear a ?1? may cause a planned calibration to be skipped, if the calibration routine had not reached the sensor input yet. 5.12 interrupt enable register the interrupt enable register determines whether a sensor pad touch or release (if enabled) causes an interrupt (see section 4.8, "interrupts" ). for all bits in this register: ? ?0? - the alert# pin will not be asserted if a to uch is detected on the specified sensor input. ? ?1? (default) - the alert# pin will be asserted if a touch is detected on the specified sensor input. bit 7 - cs8_int_en - enables the alert# pin to be asserted if a touc h is detected on cs8 (associated with the cs8 status bit). bit 6 - cs7_int_en - enables the alert# pin to be asserted if a touch is detected on cs7 (associated with the cs7 status bit). bit 5 - cs6_int_en - enables the alert# pin to be asserted if a touc h is detected on cs6 (associated with the cs6 status bit). bit 4 - cs5_int_en - enables the alert# pin to be asserted if a touc h is detected on cs5 (associated with the cs5 status bit). bit 3 - cs4_int_en - enables the alert# pin to be asserted if a touc h is detected on cs4 (associated with the cs4 status bit). bit 2 - cs3_int_en - enables the alert# pin to be asserted if a touc h is detected on cs3 (associated with the cs3 status bit). bit 1 - cs2_int_en - enables the alert# pin to be asserted if a touc h is detected on cs2 (associated with the cs2 status bit). bit 0 - cs1_int_en - enables the alert# pin to be asserted if a touc h is detected on cs1 (associated with the cs1 status bit). 5.13 repeat rate enable register the repeat rate enable register enables the r epeat rate of the sensor inputs as described in section 4.8.2, "capacitive sensor input interrupt behavior" . table 5.21 interrupt enable register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 27h r/w interrupt enable cs8_ int_en cs7_ int_en cs6_ int_en cs5_ int_en cs4_ int_en cs3_ int_en cs2_ int_en cs1_ int_en ffh table 5.22 repeat rate enable register addrr/wregisterb7b6b5b4b3b2b1b0default 28h r/w repeat rate enable cs8_ rpt_en cs7_ rpt_en cs6_ rpt_en cs5_ rpt_en cs4_ rpt_en cs3_ rpt_en cs2_ rpt_en cs1_ rpt_en ffh
8-channel capacitive touch sensor datasheet ds00001570b-page 44 ? 2014 microchip technology inc. for all bits in this register: ? ?0? - the repeat rate for the specified sensor inpu t is disabled. it will only generate an interrupt when a touch is detected and when a rele ase is detected (if enabled) no matter how long the touch is held. ? ?1? (default) - the repeat rate for the specified se nsor input is enabled. in the case of a ?touch? event, it will generate an interrupt when a t ouch is detected and a re lease is detected (as determined by the int_rel_n bit - see section 5.6, "confi guration registers" ). in the case of a ?press and hold? event, it will generate an interrupt when a touch is detected and at the repeat rate so long as the touch is held. bit 7 - cs8_rpt_en - enables the repeat rate for capacitive touch sensor input 8. bit 6 - cs7_rpt_en - enables the repeat rate for capacitive touch sensor input 7. bit 5 - cs6_rpt_en - enables the repeat rate for capacitive touch sensor input 6. bit 4 - cs5_rpt_en - enables the repeat rate for capacitive touch sensor input 5. bit 3 - cs4_rpt_en - enables the repeat rate for capacitive touch sensor input 4. bit 2 - cs3_rpt_en - enables the repeat rate for capacitive touch sensor input 3. bit 1 - cs2_rpt_en - enables the repeat rate for capacitive touch sensor input 2. bit 0 - cs1_rpt_en - enables the repeat rate for capacitive touch sensor input 1. 5.14 multiple touch configuration register the multiple touch configuration regi ster controls the settin gs for the multiple t ouch detection circuitry. these settings determine the number of simultaneous buttons that may be pressed before additional buttons are blocked and the mult status bit is set. bit 7 - mult_blk_en - enables the multiple button blocking circuitry. ? ?0? - the multiple touch circuitry is disabl ed. the device will not block multiple touches. ? ?1? (default) - the multiple touch circuitry is enabled. the device will fl ag the number of touches equal to programmed multiple touch threshold and block all others. it will remember which sensor inputs are valid and block all ot hers until that sensor pad has been released. once a sensor pad has been released, the n detected touches (deter mined via the sensing cycle order of cs1 - cs8) will be flagged and all others blocked. bits 3 - 2 - b_mult_t[1:0] - determines the number of simultaneous touches on all sensor pads before a multiple touch event is detected and sens or inputs are blocked. the bit decode is given by table 5.24 . table 5.23 multiple touch configuration addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2ah r/w multiple touch config mult_ blk_ en - - - b_mult_t[1:0] - - 80h
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 45 5.15 multiple touch pattern configuration register the multiple touch pattern configur ation register controls the setti ngs for the multiple touch pattern detection circuitry. this circuitry works like the multiple touch detection circuitry with the following differences: 1. the detection threshold is a percentage of the touch detection threshold as defined by the mtp_th[1:0] bits whereas the multiple touch ci rcuitry uses the touch detection threshold. 2. the mtp detection circuitry either will detect a sp ecific pattern of sensor inputs as determined by the multiple touch pattern register settings or it will use the multiple touch pattern register settings to determine a minimum number of sensor inputs that will cause the mtp circuitry to flag an event (see section 5.16, "multiple touch pattern register" ). when using pattern recognition mode, if all of the sensor inputs set by the multiple touch pattern register have a delta count greater than the mtp threshold or have their corresponding noise flag status bits set, the mtp bit will be set. when using the absolute number mode, if the number of sensor inputs with thresholds above the mtp threshold or with noise flag status bits set is equ al to or greater than this number, the mtp bit will be set. 3. when an mtp event occurs, all touches ar e blocked and an interrupt is generated. 4. all sensor inputs will remain blocked so long as the requisite number of sensor inputs are above the mtp threshold or have noise flag status bits set. once this condition is removed, touch detection will be restored. note that the mtp status bit is only cleared by writing a ?0? to the int bit once the condition has been removed. bit 7 - mtp_en - enables the multiple touch pattern detection circuitry. ? ?0? (default) - the mtp detection circuitry is disabled. ? ?1? - the mtp detection circuitry is enabled. bits 3 - 2 - mtp_th[1:0] - determin e the mtp threshold, as shown in table 5.26 . this threshold is a percentage of sensor input threshold (see section 5.19, "sensor input threshold registers" ) for inputs enabled in the active state or of the standby threshold (see section 5.24, "standby threshold register" ) for inputs enabled in the standby state. table 5.24 b_mult_t bit decode b_mult_t[1:0] number of simultaneous touches 10 0 0 1 (default) 01 2 10 3 11 4 table 5.25 multiple touch pattern configuration addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2bh r/w multiple touch pattern config mtp_ en - - - mtp_th[1:0] comp_ ptrn mtp_ alert 00h
8-channel capacitive touch sensor datasheet ds00001570b-page 46 ? 2014 microchip technology inc. bit 1 - comp_ptrn - determines whether the mtp detection circuitry will use the multiple touch pattern register as a specific pattern of sensor in puts or as an absolute number of sensor inputs. ? ?0? (default) - the mtp detection ci rcuitry will use the multiple touch pattern register bit settings as an absolute minimum number of sensor inputs that must be above the threshold or have noise flag status bits set. the number will be equal to the number of bits set in the register. ? ?1? - the mtp detection circuitry will use pattern recognition. each bit set in the multiple touch pattern register indicates a specific sensor input that must have a delta count greater than the mtp threshold or have a noise flag status bit set. if the criteria are met, the mt p status bit will be set. bit 0 - mtp_alert - enables an interrupt if an mtp event occurs. in either condition, the mtp status bit will be set. ? ?0? (default) - if an mtp event occurs, the alert# pin is not asserted. ? ?1? - if an mtp event occurs, the alert# pin will be asserted. 5.16 multiple to uch pattern register the multiple touch pattern register acts as a patter n to identify an expected sensor input profile for diagnostics or other significant ev ents. there are two methods for how the multiple touch pattern register is used: as sp ecific sensor inputs or number of s ensor input that must exceed the mtp threshold or have noise flag status bits set. wh ich method is used is based on the comp_ptrn bit (see section 5.15 ). the methods are described below. 1. specific sensor inputs: if, during a single sens ing cycle, the specific sensor inputs above the mtp threshold or with noise flag status bits set matc h those bits set in the multiple touch pattern register, an mtp event is flagged. 2. number of sensor inputs: if, during a single sens ing cycle, the number of sensor inputs with a delta count above the mtp threshold or with noise flag st atus bits set is equal to or greater than the number of pattern bits set, an mtp event is flagged. table 5.26 mtp_th bit decode mtp_th[1:0] threshold divide setting 10 0 0 12.5% (default) 0125% 1 0 37.5% 1 1 100% table 5.27 multiple touch pattern register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2dh r/w multiple touch pattern cs8_ ptrn cs7_ ptrn cs6_ ptrn cs5_ ptrn cs4_ ptrn cs3_ ptrn cs2_ ptrn cs1_ ptrn ffh
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 47 for all bits in this register: ? ?0? - the specified sensor input is no t considered a part of the pattern. ? ?1? - the specified sensor input is considered a part of the pattern, or the absolute number of sensor inputs that must have a delta count greater than the mtp threshold or have the noise flag status bit set is increased by 1. bit 7 - cs8_ptrn - determines whether cs8 is cons idered as part of the multiple touch pattern. bit 6 - cs7_ptrn - determines whether cs7 is cons idered as part of the multiple touch pattern. bit 5 - cs6_ptrn - determines whether cs6 is cons idered as part of the multiple touch pattern. bit 4 - cs5_ptrn - determines whether cs5 is cons idered as part of the multiple touch pattern. bit 3 - cs4_ptrn - determines whether cs4 is cons idered as part of the multiple touch pattern. bit 2 - cs3_ptrn - determines whether cs3 is cons idered as part of the multiple touch pattern. bit 1 - cs2_ptrn - determines whether cs2 is cons idered as part of the multiple touch pattern. bit 0 - cs1_ptrn - determines whether cs1 is cons idered as part of the multiple touch pattern. 5.17 base count ou t of limit register the base count out of limit register indicates which sensor inputs have base counts out of limit (see section 4.4, "sensor input calibration" ). when these bits are set, the bc_out bit is set (see section 5.2, "status registers" ). for all bits in this register: ? ?0? - the base count for the specified sensor input is in the operating range. ? ?1? - the base count of the specified sens or input is not in the operating range. bit 7 - bc_out_8 - indicates whether cs8 has a base count out of limit. bit 6 - bc_out_7 - indicates whether cs7 has a base count out of limit. bit 5 - bc_out_6 - indicates whether cs6 has a base count out of limit. bit 4 - bc_out_5 - indicates whether cs6 has a base count out of limit. bit 3 - bc_out_4 - indicates whether cs6 has a base count out of limit. bit 2 - bc_out_3 - indicates whether cs3 has a base count out of limit. bit 1 - bc_out_2 - indicates whether cs2 has a base count out of limit. bit 0 - bc_out_1 - indicates whether cs1 has a base count out of limit. table 5.28 base count out of limit register addrr/wregisterb7b6b5b4b3b2b1b0 default 2eh r base count out of limit bc_ out_ 8 bc_ out_ 7 bc_ out_ 6 bc_ out_ 5 bc_ out_ 4 bc_ out_ 3 bc_ out_ 2 bc_ out_ 1 00h
8-channel capacitive touch sensor datasheet ds00001570b-page 48 ? 2014 microchip technology inc. 5.18 recalibration configuration register the recalibration configuration register controls some recalibration routine settings (see section 4.4, "sensor input calibration" ) as well as advanced controls to program the sensor input threshold register settings. bit 7 - but_ld_th - enables setting all sensor in put threshold registers by writing to the sensor input 1 threshold register. ? ?0? - each sensor input x threshold register is updated individually. ? ?1? (default) - writing the sensor input 1 threshold register will aut omatically overwrite the sensor input threshold registers for all sensor inputs (sensor input threshold 1 through sensor input threshold 8). the individual sensor input x threshold registers (sensor input 2 threshold through sensor input 8 threshold) can be individually updated at any time. bit 6 - no_clr_intd - controls whether the accumula tion of intermediate data is cleared if the noise status bit is set. ? ?0? (default) - the accumulation of intermediate data is cleared if the noise status bit is set. ? ?1? - the accumulation of intermediate data is not cleared if the noise status bit is set. application note: bits 5 and 6 should both be set to the same value. either both should be set to ?0? or both should be set to ?1?. bit 5 - no_clr_neg - controls whether the consec utive negative delta counts counter is cleared if the noise status bit is set. ? ?0? (default) - the consecutive negative delta counts counter is cleared if the noise status bit is set. ? ?1? - the consecutive negative delta counts counter is not cleared if the noise status bit is set. bits 4 - 3 - neg_delta_cnt[1:0] - determines th e number of negative delta counts necessary to trigger a digital recalibration (see section 4.4.2, "negative delta count recalibration" ), as shown in table 5.30 . bits 2 - 0 - cal_cfg[2:0] - determi nes the update time and number of samples of the automatic recalibration routine (see section 4.4.1, "automatic recalibration" ). the settings apply to all sensor table 5.29 recalibration configuration registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 2fh r/w recalibration configuration but_ ld_th no_clr _intd no_clr _neg neg_delta_ cnt[1:0] cal_cfg[2:0] 8ah table 5.30 neg_delta_cnt bit decode neg_delta_cnt[1:0] number of consecut ive negative delta count values 10 00 8 0 1 16 (default) 10 32 1 1 none (disabled)
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 49 inputs universally (though individual sensor inputs can be configured to support recalibration - see section 5.11 ). note 5.1 recalibration samples refers to the number of samples that are measured and averaged before the base count is updated however does not control the base count update period. note 5.2 update time refers to the amount of time (in sensing cycle periods) that elapses before the base count is updated. the time will depend upon the number of channels enabled, the averaging setting, and t he programmed sensing cycle time. 5.19 sensor input threshold registers table 5.31 cal_cfg bit decode cal_cfg[2:0] recalibration samples (see note 5.1 ) update time (see note 5.2 ) 210 0 0 0 16 16 001 32 32 0 1 0 64 64 (default) 0 1 1 128 128 100 256 256 1 0 1 256 1024 1 1 0 256 2048 1 1 1 256 4096 table 5.32 sensor input threshold registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 30h r/w sensor input 1 threshold -6432168421 40h 31h r/w sensor input 2 threshold -6432168421 40h 32h r/w sensor input 3 threshold -6432168421 40h 33h r/w sensor input 4 threshold -6432168421 40h 34h r/w sensor input 5 threshold -6432168421 40h 35h r/w sensor input 6 threshold -6432168421 40h
8-channel capacitive touch sensor datasheet ds00001570b-page 50 ? 2014 microchip technology inc. the sensor input threshold registers store the delta threshold that is used to determine if a touch has been detected. when a touch occurs, the input signal of the corresponding sensor pad changes due to the capacitance associated with a touch. if the sensor input change exceeds the threshold settings, a touch is detected. when the but_ld_th bit is set (see section 5.18 - bit 7), writing data to the sensor input 1 threshold register will update all of the sensor input threshold registers (31h - 37h inclusive). 5.20 sensor input no ise threshold register the sensor input noise threshold register controls the value of a secondary internal threshold to detect noise and improve the automati c recalibration routine. if a capacitive touch sensor input exceeds the sensor input noise threshold but does not exceed the sensor input thres hold, it is determined to be caused by a noise spike. that sample is not used by the automatic recalibration routine. this feature can be disabled by setting the dis_dig_noise bit. bits 1-0 - cs1_bn_th[1:0] - controls the noise th reshold for all capacitive touch sensor inputs, as shown in ta b l e 5 . 3 4 . the threshold is proportional to the threshold setting. 36h r/w sensor input 7 threshold -6432168421 40h 37h r/w sensor input 8 threshold -6432168421 40h table 5.33 sensor input noise threshold register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 38h r/w sensor input noise threshold - - ---- cs_bn_th [1:0] 01h table 5.34 csx_bn_th bit decode cs_bn_th[1:0] percent threshold setting 10 0025% 0 1 37.5% (default) 1050% 1 1 62.5% table 5.32 sensor input threshold registers (continued) addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 51 5.21 standby channel register the standby channel register controls which (if an y) capacitive touch sensor inputs are enabled in standby (see section 4.3.1.2, "standby state sensing settings" ). for all bits in this register: ? ?0? (default) - the spec ified channel will not be monitored in standby. ? ?1? - the specified channel will be monitored in standby. it will use the standby threshold setting, and the standby averaging and sensitivity settings. bit 7 - cs8_stby - controls whether the cs8 channel is enabled in standby. bit 6 - cs7_stby - controls whether the cs7 channel is enabled in standby. bit 5 - cs6_stby - controls whether the cs6 channel is enabled in standby. bit 4 - cs5_stby - controls whether the cs5 channel is enabled in standby. bit 3 - cs4_stby - controls whether the cs4 channel is enabled in standby. bit 2 - cs3_stby - controls whether the cs3 channel is enabled in standby. bit 1 - cs2_stby - controls whether the cs2 channel is enabled in standby. bit 0 - cs1_stby - controls whether the cs1 channel is enabled in standby. 5.22 standby configuration register the standby configuration register controls av eraging and sensing cycle time for sensor inputs enabled in standby. this register allows the user to change averaging and sample times on a limited number of sensor inputs in standby and still ma intain normal functionality in the active state. bit 7 - avg_sum - determines whether the sens or inputs enabled in standby will average the programmed number of samples or whether they will accumulate for the programmed number of samples. ? ?0? - (default) - the standby enabled sensor inpu t delta count values will be based on the average of the programmed number of samples when compared against the threshold. ? ?1? - the standby enabled sensor input delta count values will be based on the summation of the programmed number of samples when compared aga inst the threshold. caution should be used with this setting as a touch may overflow the delt a count registers and may result in false readings. table 5.35 standby channel register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 40h r/w standby channel cs8_ stby cs7_ stby cs6_ stby cs5_ stby cs4_ stby cs3_ stby cs2_ stby cs1_ stby 00h table 5.36 standby configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 41h r/w standby configuration avg_ sum stby_avg[2:0] stby_samp_ time[1:0] stby_cy_time [1:0] 39h
8-channel capacitive touch sensor datasheet ds00001570b-page 52 ? 2014 microchip technology inc. bits 6 - 4 - stby_avg[2:0] - determines the number of samples that are taken for all standby enabled channels during the sens ing cycle as shown in ta b l e 5 . 3 7 . all samples are taken consecutively on the same channel before the next channel is sampled and the result is averaged over the number of samples measured before updating the measured results. bit 3 - 2 - stby_samp_time[1:0] - determines the ti me to take a single sample for sensor inputs enabled in standby as shown in ta b l e 5 . 3 8 . bits 1 - 0 - stby_cy_time[2:0] - determines the de sired sensing cycle time fo r sensor inputs enabled during standby, as shown in ta b l e 5 . 3 9 . all enabled channels are sampled at the beginning of the sensing cycle. if additional time is remaining, the device is placed into a lower power state for the remainder of t he sensing cycle. table 5.37 stby_avg bit decode stby_avg[2:0] number of samples taken per measurement 210 000 1 001 2 010 4 0 1 1 8 (default) 100 16 101 32 110 64 1 1 1 128 table 5.38 stby_samp_time bit decode stby_samp_time[1:0] sampling time 10 0 0 320us 0 1 640us 1 0 1.28ms (default) 1 1 2.56ms table 5.39 stby_cy_time bit decode stby_cy_time[1:0] programmed sensing cycle time 10 00 35ms 0 1 70ms (default)
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 53 application note: the programmed sensing cycle time (stdby_cy_ti me[1:0] is only maintained if the actual time to take the samples is less than t he programmed cycle time. the stby_avg[2:0] bits will take priority, so the sensing cycle time will be extended as nece ssary to accommodate the number of samples to be measured. 5.23 standby sensitivity register the standby sensitivity register controls the sensitivity for s ensor inputs enabled in standby. bits 2 - 0 - stby_sense[2:0] - controls the sensit ivity for sensor inputs that are enabled in standby. the sensitivity settings act to scale the relative delta count value higher or lower based on the system parameters. a setting of 000b is the most sensitive wh ile a setting of 111b is the least sensitive. at the more sensitive settings, touches are detected for a smaller delta capacitance corresponding to a ?lighter? touch. these settings are more sensitiv e to noise, however, and a noisy environment may flag more false touches than higher sensitivity levels. application note: a value of 128x is the most sens itive setting available. at the most sensitivity settings, the msb of the delta count register represents 64 out of ~25,000 which corresponds to a touch of approximately 0.25% of the base capacitance (or a c of 25ff from a 10pf base capacitance). conversely a val ue of 1x is the least sensitiv e setting available. at these settings, the msb of the delta count register corresponds to a delta count of 8192 counts out of ~25,000 which corresponds to a touch of approximately 33% of the base capacitance (or a c of 3.33pf from a 10pf base capacitance). 1 0 105ms 1 1 140ms table 5.40 standby sensitivity register addrr/wregister b7 b6 b5b4b3b2b1b0default 42h r/w standby sensitivity - - - - - stby_sense[2:0] 02h table 5.41 stby_sense bit decode stby_sense[2:0] sensitivity multiplier 210 0 0 0 128x (most sensitive) 001 64x 0 1 0 32x (default) 011 16x 100 8x table 5.39 stby_cy_time bit decode (continued) stby_cy_time[1:0] programmed sensing cycle time 10
8-channel capacitive touch sensor datasheet ds00001570b-page 54 ? 2014 microchip technology inc. 5.24 standby threshold register the standby threshold register stores the delta thres hold that is used to dete rmine if a touch has been detected. when a touch occurs, the input signal of the corresponding sensor pad changes due to the capacitance associated with a touch. if the sens or input change exceeds the threshold settings, a touch is detected. 5.25 sensor input base count registers 101 4x 110 2x 1 1 1 1x - (least sensitive) table 5.42 standby threshold register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 43h r/w standby threshold -6432168421 40h table 5.43 sensor input base count registers addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 50h r sensor input 1 base count 128 64 32 16 8 4 2 1 c8h 51h r sensor input 2 base count 128 64 32 16 8 4 2 1 c8h 52h r sensor input 3 base count 128 64 32 16 8 4 2 1 c8h 53h r sensor input 4 base count 128 64 32 16 8 4 2 1 c8h 54h r sensor input 5 base count 128 64 32 16 8 4 2 1 c8h 55h r sensor input 6 base count 128 64 32 16 8 4 2 1 c8h 56h r sensor input 7 base count 128 64 32 16 8 4 2 1 c8h 57h r sensor input 8 base count 128 64 32 16 8 4 2 1 c8h table 5.41 stby_sense bi t decode (c ontinued) stby_sense[2:0] sensitivity multiplier 210
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 55 the sensor input base count registers store the calibrated ?not touched? input value from the capacitive touch sensor inputs. these registers are periodically updated by the calibration and recalibration routines. the routine uses an internal adder to add the current count value for each reading to the sum of the previous readings until sample size has been reac hed. at this point, the upper 16 bits are taken and used as the sensor input base co unt. the internal adder is then reset and the recalibration routine continues. the data presented is determined by the base_shift[3:0] bits (see section 5.5 ). 5.26 power button register the power button register indicates the sensor i nput that has been designated as the power button (see section 4.5, "power button" ). bits 2 - 0 - pwr_btn[2:0] - when the power butt on feature is enabled, this control indicates the sensor input to be used as the pow er button. the decode is shown in table 5.45 . 5.27 power button configuration register table 5.44 power button register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 60h r/w power button - - - - - pwr_btn[2:0] 00h table 5.45 pwr_btn bit decode pwr_btn[2:0] sensor input designated as power button 210 000 cs1 001 cs2 010 cs3 011 cs4 100 cs5 101 cs6 110 cs7 111 cs8 table 5.46 power button configuration register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default 61h r/w power button configuration - stby_ pwr_ en stby_pwr_ time [1:0] - pwr_ en pwr_time [1:0] 22h
8-channel capacitive touch sensor datasheet ds00001570b-page 56 ? 2014 microchip technology inc. the power button configuration register controls the length of time that the designated power button must indicate a touch before an interrupt is generated and the power status indicator is set (see section 4.5, "power button" ). bit 6 - stby_pwr_en - enables the power button feature in the standby state. ? ?0? (default) - the standby powe r button circuitry is disabled. ? ?1? - the standby power button circuitry is enabled. bits 5 - 4 - stby_pwr_time[1:0] - determines the overall time, as shown in ta b l e 5 . 4 7 , that the power button must be held in the standby state, in order for an interrupt to be generated and the pwr bit to be set. bit 2 - pwr_en - enables the power button feature in the active state. ? ?0? (default) - the power button circui try is disabled in the active state. ? ?1? -the power button circuitry is enabled in the active state. bits 1 - 0 - pwr_time[1:0] - determines the overall time, as shown in ta b l e 5 . 4 7 , that the power button must be held in the active state, in order for an interrupt to be generated and the pwr bit to be set. 5.28 sensor input calibration registers table 5.47 power button time bits decode pwr_time[1:0] / stby_pwr_time[1:0] power button touch hold time 10 0 0 280ms 0 1 560ms 1 0 1.12 sec (default) 1 1 2.24 sec table 5.48 sensor input calibration registers addr register r/w b7 b6 b5 b4 b3 b2 b1 b0 default b1h sensor input 1 calibration r cal1_9 cal1_8 cal1_7 cal1_6 cal1_5 cal1_4 cal1_3 cal1_2 00h b2h sensor input 2 calibration r cal2_9 cal2_8 cal2_7 cal2_6 cal2_5 cal2_4 cal2_3 cal2_2 00h b3h sensor input 3 calibration r cal3_9 cal3_8 cal3_7 cal3_6 cal3_5 cal3_4 cal3_3 cal3_2 00h b4h sensor input 4 calibration r cal4_9 cal4_8 cal4_7 cal4_6 cal4_5 cal4_4 cal4_3 cal4_2 00h b5h sensor input 5 calibration r cal5_9 cal5_8 cal5_7 cal5_6 cal5_5 cal5_4 cal5_3 cal5_2 00h b6h sensor input 6 calibration r cal6_9 cal6_8 cal6_7 cal6_6 cal6_5 cal6_4 cal6_3 cal6_2 00h
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 57 the sensor input calibration regist ers hold the 10-bit value that repres ents the last calibration value. the value represents the capacitance applied to t he internal sensing circuits to balance the capacitance of the sensor input pad. minimum (000h) and maximum (3ffh) values indicate analog calibration failure (see section 4.4, "sensor input calibration" ). 5.29 product id register the product id register stores a unique 8-bit value that identifies the device. 5.30 manufacturer id register the vendor id register stores an 8-bit value that represents mchp. 5.31 revision register the revision register stores an 8-bit va lue that represents the part revision. b7h sensor input 7 calibration r cal7_9 cal7_8 cal7_7 cal7_6 cal7_5 cal7_4 cal7_3 cal7_2 00h b8h sensor input 8 calibration r cal8_9 cal8_8 cal8_7 cal8_6 cal8_5 cal8_4 cal8_3 cal8_2 00h b9h sensor input calibration lsb 1 r cal4_1 cal4_0 cal3_1 cal3_0 cal2_1 cal2_0 cal1_1 cal1_0 00h bah sensor input calibration lsb 2 r cal8_1 cal8_0 cal7_1 cal7_0 cal6_1 cal6_0 cal5_1 cal5_0 00h table 5.49 product id register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default fdh r product id CAP1208 01101011 6bh table 5.50 vendor id register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default feh rmanufacturer id01011101 5dh table 5.51 revision register addr r/w register b7 b6 b5 b4 b3 b2 b1 b0 default ffhr revision 00000000 00h table 5.48 sensor input calibration registers (continued) addr register r/w b7 b6 b5 b4 b3 b2 b1 b0 default
8-channel capacitive touch sensor datasheet ds00001570b-page 58 ? 2014 microchip technology inc. chapter 6 package information 6.1 CAP1208 p ackage drawings figure 6.1 CAP1208 package drawing - 16-pin qfn 3mm x 3mm
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 59 figure 6.2 CAP1208 package dimensions - 16-pin qfn 3mm x 3mm
8-channel capacitive touch sensor datasheet ds00001570b-page 60 ? 2014 microchip technology inc. figure 6.3 CAP1208 pcb land pattern and stencil - 16-pin qfn 3mm x 3mm
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 61 6.2 package marking figure 6.4 CAP1208-1 package marking figure 6.5 CAP1208-2 package marking bottom line 1: device code, first 2 of last 6 digits of lot number line 2: last 4 digits of lot number top e3 pin 1 bottom marking is not allowed 2 b l l l l l l bottom line 1: device code, first 2 of last 6 digits of lot number line 2: last 4 digits of lot number top e3 pin 1 bottom marking is not allowed h 2 l l l l l l
8-channel capacitive touch sensor datasheet ds00001570b-page 62 ? 2014 microchip technology inc. appendix a device delta a.1 delta from cap1128 / cap1188 to CAP1208 1. revision id set to 00h. 2. pinout changed. reset, wake, and addr_comm pi ns removed. led pins removed. spi pins / muxing also removed. added gnd pin as ground sl ug is no longer used for ground connection. 3. reduced package size from a 20-pin 4mm x 4mm qfn to a 16-pin 3mm x 3mm qfn. 4. added acal_fail bit to flag analog calibration failures (see section 5.2, "status registers" ) and acal_fail_int bit to control analog calibration failure interrupts (see section 5.6, "configuration registers" ). 5. added bc_out bit to flag calibration fa ilures regarding base counts out of limit (see section 5.2, "status registers" ) and bc_out_recal and bc_out_int bit to control base count out of limit behavior and interrupts (see section 5.6, "configuration registers" ). added base count out of limit register to indicate which sensor inpu ts have base counts outside the operating range (see section 5.17, "base count out of limit register" ). 6. added power button feature (see section 4.5, "power button" ). 7. increased supply voltage range for 5v operation. 8. increased operating temperature range from 0c - 85c to -40c to 125c. 9. removed proximity detection gain. 10. leds removed. 11. smbus address fixed at 0101_000(r/w). 12. removed spi communicat ions protocol option. 13. removed reset pin function. 14. removed wake pin function. 15. removed alert pin configuration. 16. register set changes are shown in table a.1, "register delta" . table a.1 register delta address register delta delta default 00h page 30 removed bits - main control register removed gain[1:0] bits. 00h 02h page 31 added bits - general status register added bit 4 pwr for new power button feature. added bit 5 acal_fail to indicate analog calibration failure. added bit 6 bc_out. removed bit 4 led status. 00h 04h removed - led status register removed register n/a 20h page 35 removed bit - configuration register removed bit 6 wake_cfg. 20h
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 63 26h page 42 renamed calibration activate and status register and added functionality in addition to forcing a calibration, the register also indicates the status of calibration for each sensor input. 00h 2eh page 47 new - base count out of limit register new register for calibration status 00h 44h page 35 added and removed bits - configuration 2 register added bit 1 acal_fail_int. changed bit 4 from blk_pol_mir to bc_out_int. changed bit 6 from alt_pol to bc_out_recal. removed bit 7 inv_link_tran. 40h 60h page 55 new - power button register new register for power button feature 00h 61h page 55 new - power button configuration register new register for configuring the power button feature 00h 71h removed - led output type register removed register n/a 72h removed - sensor input led linking register removed register n/a 73h removed - led polarity register removed register n/a 74h removed - led output control register removed register n/a 77h removed - linked led transition control register removed register n/a 79h removed - led mirror control register removed register n/a 81h removed - led 1 behavior register removed register n/a 82h removed - led behavior register 2 removed register n/a 84h removed - led pulse 1 period removed register n/a 85h removed - led pulse 2 period removed register n/a 86h removed - led breathe period register removed register n/a 88h removed - led config register removed register n/a 90h removed - led pulse 1 duty cycle register removed register n/a table a.1 register delta (continued) address register delta delta default
8-channel capacitive touch sensor datasheet ds00001570b-page 64 ? 2014 microchip technology inc. 91h removed - led pulse 2 duty cycle register removed register n/a 92h removed - led breathe duty cycle register removed register n/a 93h removed - led direct duty cycle register removed register n/a 94h removed - led direct ramp rates register removed register n/a 95h removed - led off delay removed register n/a fdh page 57 changed - product id new product id for CAP1208 6bh ffh page 57 changed - revision register revision changed. 00h table a.1 register delta (continued) address register delta delta default
8-channel capacitive touch sensor datasheet ? 2014 microchip technology inc. ds00001570b-page 65 chapter 7 revision history table 7.1 revision history revision level and date section/figure/entry correction CAP1208 revision b added CAP1208-2 information to the following sections: ordering information section 3.2.2, "smbus address and rd / wr bit" table 3.2, "write byte protocol" table 3.3, "read byte protocol" table 3.4, "send byte protocol" table 3.5, "receive byte protocol" table 3.6, "block read protocol" table 3.7, "block write protocol" added figure 6.5, "CAP1208-2 package marking" updated worldwide sales and service listing CAP1208 revision a replaces the previous smsc version revision 1.0
8-channel capacitive touch sensor datasheet ds00001570b-page 66 ? 2014 microchip technology inc. note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal meth ods used to breach the code protection fe ature. all of these methods, to our knowledge, require using the microchip pr oducts in a manner outside the operating specif ications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semiconduc tor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are committed to continuously improving the code protection features of our products. attempts to break microchip?s c ode protection feature may be a violation of the digital millennium copyright act. if such acts allow unauthorized access to your softwa re or other copyrighted work, you may have a right to sue for relief under that act. information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application meets with y our specifications. microchip make s no representations or warranties of any kind whether ex press or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fi tness for purpose . microchip disclaims all liability arising fr om this information and its use. use of microchip devices in life support and/or safety applications is entirely at the buyer?s risk, and the buyer agrees to defend, i ndemnify and hold harmless microchip from any and all dama ges, claims, suits, or expenses resulting from such use. no licenses ar e conveyed, implic- itly or otherwise, under any micr ochip intellectual property rights. trademarks the microchip name and logo, the micr ochip logo, dspic, flashflex, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, pic 32 logo, rfpic, sst, sst logo, superflash and uni/o are registered tr ademarks of microchip technology incorporated in the u.s.a. a nd other countries. filterlab, hampshire, hi-tech c, linear active thermistor, mtp, seeval and t he embedded control solutions company are registered trademarks of microchip technology incorporated in the u.s.a. silicon storage technology is a registered trademark of microchip technology inc. in other countries. analog-for-the-digital age, application maestro, bodycom, chipkit, chipkit logo, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, hi-tide, in-circuit serial programming, icsp, mindi, miwi, mpasm, mpf, mplab certified logo, mplib, mplink, mtouch, omniscient code generation, picc, picc-18, picdem, picdem.net, pickit, pictail, real ice, rflab, select mode, sqi, serial quad i/o, total endurance, tsharc, uniwindriver, wiperlock, zena and z- scale are trademarks of microc hip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of microchi p technology incorporated in the u.s.a. gestic and ulpp are registered trademarks of microchip technology germany ii gmbh & co. kg, a subsidiary of microchip technology inc., in other countries. a more complete list of registered trademarks and common law trademarks owned by standard microsystems corporation (?smsc?) is available at: www.smsc.com. t he absence of a trademark (name, logo, etc.) from the list does not constitute a waiver of any intellectual property rights that smsc has established in any of its trademarks. all other trademarks mentioned herein are pr operty of their respective companies. ? 2014, microchip technology incorporated, pr inted in the u.s.a., all rights reserved. isbn: 9781620779156 microchip received iso/ts-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microperi pherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified. quality management s ystem certified by dnv == iso/ts 16949 ==
ds00001570b-page 67 ? 2014 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://www.microchip.com/ support web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 austin, tx tel: 512-257-3370 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit novi, mi tel: 248-848-4000 houston, tx tel: 281-894-5983 indianapolis noblesville, in tel: 317-773-8323 fax: 317-773-5453 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 new york, ny tel: 631-435-6000 san jose, ca tel: 408-735-9110 canada - toronto tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8569-7000 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - chongqing tel: 86-23-8980-9588 fax: 86-23-8980-9500 china - hangzhou tel: 86-571-2819-3187 fax: 86-571-2819-3189 china - hong kong sar tel: 852-2943-5100 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8864-2200 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4123 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-3019-1500 japan - osaka tel: 81-6-6152-7160 fax: 81-6-6152-9310 japan - tokyo tel: 81-3-6880- 3770 fax: 81-3-6880-3771 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-5778-366 fax: 886-3-5770-955 taiwan - kaohsiung tel: 886-7-213-7830 taiwan - taipei tel: 886-2-2508-8600 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - dusseldorf tel: 49-2129-3766400 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 germany - pforzheim tel: 49-7231-424750 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 italy - venice tel: 39-049-7625286 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 poland - warsaw tel: 48-22-3325737 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 sweden - stockholm tel: 46-8-5090-4654 uk - wokingham tel: 44-118-921-5800 fax: 44-118-921-5820 worldwide sales and service 10/28/13


▲Up To Search▲   

 
Price & Availability of CAP1208

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X